From 2cf1007b5d82def2af6b712e2ffe3846b6dcb71f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20=E2=80=9CStorm1er=E2=80=9D=20Decaunes?= Date: Thu, 19 Mar 2020 08:15:01 +0000 Subject: [PATCH] fix: Unable to initialize persistent data in some cases. --- public/upgrader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/upgrader.js b/public/upgrader.js index f816700..bb09bae 100644 --- a/public/upgrader.js +++ b/public/upgrader.js @@ -6,7 +6,7 @@ const app = electron.app; const app_version_as_string = app.getVersion().replace(/\./g, "_") + (isDev ? "-dev" : ""); function storageHaveCurrentVersion() { - return typeof electronSettings.get(app_version_as_string) === "object"; + return electronSettings.has(app_version_as_string); } function getAllAvailableVersion() {