This commit is contained in:
maru21 2023-10-28 22:11:28 +02:00
parent 7a4f903bb4
commit 6669f42bb7

View File

@ -20,7 +20,7 @@ const tempStore = {
globalThis.activeState.storage[key] = ""; globalThis.activeState.storage[key] = "";
}, },
clear: function () { clear: function () {
globalThis.activeState.storage = ""; globalThis.activeState.storage = [];
}, },
}; };
@ -65,9 +65,7 @@ function createStorageObj() {
} }
function storeData(name, data, ref) { function storeData(name, data, ref) {
if (passwordHash == "") { if (passwordHash == "") return;
return;
}
data = JSON.stringify(data); data = JSON.stringify(data);
//setCookie(name, btoa(data), 7); //setCookie(name, btoa(data), 7);
if (name == "userInput") { if (name == "userInput") {
@ -85,9 +83,7 @@ function storeData(name, data, ref) {
} }
function retrieveData(name, template = "none") { function retrieveData(name, template = "none") {
if (passwordHash == "") { if (passwordHash == "") return null;
return null;
}
if (name == "userInput") { if (name == "userInput") {
let tF = retrieveData("templateFiles"); let tF = retrieveData("templateFiles");
if (tF == null) { if (tF == null) {