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) {