From 4b99160b1f4b1b92345c788fd5d18ba3d69f87b0 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Tue, 5 Apr 2022 19:43:23 +0800 Subject: [PATCH] Fix "Check Update" is not checked by default --- server/check-version.js | 2 +- src/pages/Settings.vue | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/check-version.js b/server/check-version.js index f3b15e848..c9d87c96f 100644 --- a/server/check-version.js +++ b/server/check-version.js @@ -17,7 +17,7 @@ exports.startInterval = () => { res.data.slow = "1000.0.0"; } - if (!await setting("checkUpdate")) { + if (await setting("checkUpdate") === false) { return; } diff --git a/src/pages/Settings.vue b/src/pages/Settings.vue index 419404a92..b0e17764d 100644 --- a/src/pages/Settings.vue +++ b/src/pages/Settings.vue @@ -121,6 +121,10 @@ export default { this.$root.getSocket().emit("getSettings", (res) => { this.settings = res.data; + if (this.settings.checkUpdate === undefined) { + this.settings.checkUpdate = true; + } + if (this.settings.searchEngineIndex === undefined) { this.settings.searchEngineIndex = false; }