summaryrefslogtreecommitdiffstats
path: root/assets/js/setup-storage.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-17 16:14:07 +0200
committerrstular <rok@stular.eu>2020-05-17 16:29:20 +0200
commit831563c8ecb2854ceba73c284719b7579c0a3bbc (patch)
tree597d4f2d8a184c13e05027c9ce877d203686c015 /assets/js/setup-storage.js
parentMerge branch 'dev' of github.com:beziapp/beziapp.github.io into dev (diff)
downloadbeziapp-831563c8ecb2854ceba73c284719b7579c0a3bbc.tar
beziapp-831563c8ecb2854ceba73c284719b7579c0a3bbc.tar.gz
beziapp-831563c8ecb2854ceba73c284719b7579c0a3bbc.tar.bz2
beziapp-831563c8ecb2854ceba73c284719b7579c0a3bbc.tar.lz
beziapp-831563c8ecb2854ceba73c284719b7579c0a3bbc.tar.xz
beziapp-831563c8ecb2854ceba73c284719b7579c0a3bbc.tar.zst
beziapp-831563c8ecb2854ceba73c284719b7579c0a3bbc.zip
Diffstat (limited to 'assets/js/setup-storage.js')
-rw-r--r--assets/js/setup-storage.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/js/setup-storage.js b/assets/js/setup-storage.js
index a37fc8f..ad45ec7 100644
--- a/assets/js/setup-storage.js
+++ b/assets/js/setup-storage.js
@@ -17,13 +17,15 @@ async function setupStorage(force = false) {
localforage.setItem("absences", {}),
localforage.setItem("messages", { "0": [], "1": [], "2": []}), // see messages.js:129, commit 8eb9ca9caca30fbbe023243657535ab4088be377
localforage.setItem("directory", {}), //\\ well I could remember my own code but I didn't.
- localforage.setItem("meals", {})
+ localforage.setItem("meals", {}),
+ localforage.setItem("chosenLang", "en")
];
if (logged_in && force == false) { // torej, če je že bila prijava narejena, ne posodobi backwards-compatible vrednosti (username, password,...)
await Promise.all(promises_update);
console.log("[setupStorage] user logged in: only updated");
} else {
+
let promises_first_install = [
localforage.setItem("logged_in", false),
localforage.setItem("username", ""),