From 6669f42bb7fd6fa6b297c3f8efe8ecd6d1aa932f Mon Sep 17 00:00:00 2001 From: maru21 Date: Sat, 28 Oct 2023 22:11:28 +0200 Subject: [PATCH] cleanup --- js/9.9.9/storage.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/js/9.9.9/storage.js b/js/9.9.9/storage.js index 43ac4b2..b83a9a1 100644 --- a/js/9.9.9/storage.js +++ b/js/9.9.9/storage.js @@ -20,7 +20,7 @@ const tempStore = { globalThis.activeState.storage[key] = ""; }, clear: function () { - globalThis.activeState.storage = ""; + globalThis.activeState.storage = []; }, }; @@ -65,9 +65,7 @@ function createStorageObj() { } function storeData(name, data, ref) { - if (passwordHash == "") { - return; - } + if (passwordHash == "") return; data = JSON.stringify(data); //setCookie(name, btoa(data), 7); if (name == "userInput") { @@ -85,9 +83,7 @@ function storeData(name, data, ref) { } function retrieveData(name, template = "none") { - if (passwordHash == "") { - return null; - } + if (passwordHash == "") return null; if (name == "userInput") { let tF = retrieveData("templateFiles"); if (tF == null) {