fix: Unable to initialize persistent data in some cases.

This commit is contained in:
Quentin “Storm1er” Decaunes 2020-03-19 08:15:01 +00:00
parent 2388d4b974
commit 2cf1007b5d

View File

@ -6,7 +6,7 @@ const app = electron.app;
const app_version_as_string = app.getVersion().replace(/\./g, "_") + (isDev ? "-dev" : ""); const app_version_as_string = app.getVersion().replace(/\./g, "_") + (isDev ? "-dev" : "");
function storageHaveCurrentVersion() { function storageHaveCurrentVersion() {
return typeof electronSettings.get(app_version_as_string) === "object"; return electronSettings.has(app_version_as_string);
} }
function getAllAvailableVersion() { function getAllAvailableVersion() {