diff --git a/src/helpers/externalPreload.js b/src/helpers/externalPreload.js index 15a8545..748889e 100644 --- a/src/helpers/externalPreload.js +++ b/src/helpers/externalPreload.js @@ -1,7 +1,7 @@ const webFrame = require("electron").webFrame; let browserCount = require("electron").remote.getCurrentWindow().browserCount; -const key = "thorium_clientId"; +const key = "thorium_clientPersistentId"; let clientId = sessionStorage.getItem(key); webFrame.setVisualZoomLevelLimits(1, 1); @@ -14,6 +14,7 @@ setClientId( function setClient(id) { sessionStorage.setItem(key, id); clientId = id; + localStorage.setItem("thorium_clientId", id); } function setClientId(id) { diff --git a/src/helpers/preload.js b/src/helpers/preload.js index cdebcb5..a2c5089 100644 --- a/src/helpers/preload.js +++ b/src/helpers/preload.js @@ -4,7 +4,7 @@ const ipAddress = require("./ipaddress"); let browserCount = require("electron").remote.getCurrentWindow().browserCount; -const key = "thorium_clientId"; +const key = "thorium_clientPersistentId"; let clientId = sessionStorage.getItem(key); webFrame.setVisualZoomLevelLimits(1, 1); webFrame.setLayoutZoomLevelLimits(0, 0); @@ -15,6 +15,7 @@ setClientId( function setClient(id) { sessionStorage.setItem(key, id); + localStorage.setItem("thorium_clientId", id); clientId = id; } @@ -44,7 +45,6 @@ function getClientList() { window.loadPage = function loadPage(url) { let auto = false; if (document.getElementById("remember-client").checked) auto = true; - console.log("loading page"); ipcRenderer.send("loadPage", { url, auto }); return; };