浏览代码

code refactor

MaysWind 3 年之前
父节点
当前提交
23803fcebb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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]);
         }
     }