Explorar o código

code refactor

MaysWind %!s(int64=3) %!d(string=hai) anos
pai
achega
23803fcebb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main/config.js

+ 1 - 1
main/config.js

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