summaryrefslogtreecommitdiffstats
path: root/dist/js/setup-storage.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-20 20:47:22 +0200
committerrstular <rok@stular.eu>2020-05-20 20:47:22 +0200
commit8e8a1ece2e95e3817739b0ded93eac5214ba49b6 (patch)
tree9c20ec5f12942c1a7292d83b2fd295b8e82f779e /dist/js/setup-storage.js
parentIndentation fix (diff)
downloadbeziapp-8e8a1ece2e95e3817739b0ded93eac5214ba49b6.tar
beziapp-8e8a1ece2e95e3817739b0ded93eac5214ba49b6.tar.gz
beziapp-8e8a1ece2e95e3817739b0ded93eac5214ba49b6.tar.bz2
beziapp-8e8a1ece2e95e3817739b0ded93eac5214ba49b6.tar.lz
beziapp-8e8a1ece2e95e3817739b0ded93eac5214ba49b6.tar.xz
beziapp-8e8a1ece2e95e3817739b0ded93eac5214ba49b6.tar.zst
beziapp-8e8a1ece2e95e3817739b0ded93eac5214ba49b6.zip
Diffstat (limited to 'dist/js/setup-storage.js')
-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);