diff options
author | rstular <rok@stular.eu> | 2020-05-17 19:21:00 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-17 19:21:00 +0200 |
commit | de95a6b78788da7472850dad13ed9b7de9e5b9b1 (patch) | |
tree | 6b5240629e86898091ae23728eda76e93efcebde /assets/js/setup-storage.js | |
parent | install (diff) | |
download | beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.gz beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.bz2 beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.lz beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.xz beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.tar.zst beziapp-de95a6b78788da7472850dad13ed9b7de9e5b9b1.zip |
Diffstat (limited to 'assets/js/setup-storage.js')
-rw-r--r-- | assets/js/setup-storage.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/assets/js/setup-storage.js b/assets/js/setup-storage.js index ad45ec7..f9fa656 100644 --- a/assets/js/setup-storage.js +++ b/assets/js/setup-storage.js @@ -18,7 +18,8 @@ async function setupStorage(force = false) { 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("chosenLang", "en") + localforage.setItem("chosenLang", "en"), + localforage.setItem("theme", "light") ]; if (logged_in && force == false) { // torej, če je že bila prijava narejena, ne posodobi backwards-compatible vrednosti (username, password,...) @@ -30,7 +31,8 @@ async function setupStorage(force = false) { localforage.setItem("logged_in", false), localforage.setItem("username", ""), localforage.setItem("password", ""), - localforage.setItem("chosenLang", "en") + localforage.setItem("chosenLang", "en"), + localforage.setItem("theme", "light") ]; await localforage.clear(); await Promise.all(promises_first_install); |