From 1eaeb29730d532be9c5604690d0cce967a6c5847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20=E2=80=9CStorm1er=E2=80=9D=20Decaunes?= Date: Tue, 17 Mar 2020 22:00:56 +0000 Subject: [PATCH] fix: The app was unable to start in some case. --- public/electron.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/electron.js b/public/electron.js index 3bf8d45..ac930fd 100644 --- a/public/electron.js +++ b/public/electron.js @@ -17,9 +17,9 @@ let tray; upgrader(); const currentSettings = () => { - const localStorage = electronSettings.get(app_version_as_string); + const localStorage = electronSettings.get(`${app_version_as_string}.appContext.settings`); if (localStorage) { - return localStorage.appContext.settings; + return localStorage; } return false; };