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] = "";
},
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) {