summaryrefslogtreecommitdiffstats
path: root/dist/js/setup-storage.js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-05-20 20:54:40 +0200
committersijanec <sijanecantonluka@gmail.com>2020-05-20 20:54:40 +0200
commitb60d76665f04ba360e48269dccb48fef8fba2d58 (patch)
treeb8c11afcbe52b2271cc5aca3a290aed534dbcabf /dist/js/setup-storage.js
parentversion bump (diff)
parentBug fix (diff)
downloadbeziapp-b60d76665f04ba360e48269dccb48fef8fba2d58.tar
beziapp-b60d76665f04ba360e48269dccb48fef8fba2d58.tar.gz
beziapp-b60d76665f04ba360e48269dccb48fef8fba2d58.tar.bz2
beziapp-b60d76665f04ba360e48269dccb48fef8fba2d58.tar.lz
beziapp-b60d76665f04ba360e48269dccb48fef8fba2d58.tar.xz
beziapp-b60d76665f04ba360e48269dccb48fef8fba2d58.tar.zst
beziapp-b60d76665f04ba360e48269dccb48fef8fba2d58.zip
Diffstat (limited to '')
-rw-r--r--dist/js/setup-storage.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/dist/js/setup-storage.js b/dist/js/setup-storage.js
index 7aaa089..0d2552a 100644
--- a/dist/js/setup-storage.js
+++ b/dist/js/setup-storage.js
@@ -2,7 +2,7 @@ async function setupStorage(force = false) {
let logged_in;
promises_check_if_already_installed = [
localforage.getItem("logged_in").then( function(val) {
- console.log("[setupStorage] logged in status: "+val);
+ console.log("[setupStorage] logged in status: " + val);
logged_in = val;
})
];
@@ -20,7 +20,8 @@ async function setupStorage(force = false) {
localforage.setItem("meals", {}),
localforage.setItem("chosenLang", "en"),
localforage.setItem("theme", "light"),
- localforage.setItem("errorReporting", "on")
+ localforage.setItem("errorReporting", "on"),
+ localforage.setItem("triggerWarningAccepted", false)
];
if (logged_in && force == false) { // torej, če je že bila prijava narejena, ne posodobi backwards-compatible vrednosti (username, password,...)
@@ -33,7 +34,8 @@ async function setupStorage(force = false) {
localforage.setItem("username", ""),
localforage.setItem("password", ""),
localforage.setItem("chosenLang", "en"),
- localforage.setItem("theme", "light")
+ localforage.setItem("theme", "light"),
+ localforage.setItem("triggerWarningAccepted", false)
];
await localforage.clear();
await Promise.all(promises_first_install);