Browse Source

code refactor

MaysWind 3 years ago
parent
commit
23803fcebb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/config.js

+ 1 - 1
main/config.js

@@ -40,7 +40,7 @@ let config = {
     defaultPosition: userSettingsStore.get('defaultPosition') || 'last-position',
     minimizedToTray: userSettingsStore.get('minimizedToTray', true),
     save: function (item) {
-        if (item && this[item] != undefined) {
+        if (item && this[item] !== undefined) {
             userSettingsStore.set(item, this[item]);
         }
     }