cleanup
This commit is contained in:
parent
7a4f903bb4
commit
6669f42bb7
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user