diff options
author | Anton Luka Šijanec <sijanecantonluka@gmail.com> | 2020-11-09 15:06:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 15:06:18 +0100 |
commit | 05042924c5797d1bcf61794aad1a4965b7fb0e65 (patch) | |
tree | 32d9e014b24c76514be83467693a334872cdd6ab /assets/js/setup-storage.js.bvr | |
parent | Merge pull request #28 from beziapp/dev 🤞 (diff) | |
parent | added nginx config file for bežiapp html host (diff) | |
download | beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.gz beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.bz2 beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.lz beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.xz beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.tar.zst beziapp-05042924c5797d1bcf61794aad1a4965b7fb0e65.zip |
Diffstat (limited to '')
-rw-r--r-- | assets/js/setup-storage.js.bvr (renamed from assets/js/setup-storage.js) | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/assets/js/setup-storage.js b/assets/js/setup-storage.js.bvr index b29c959..3d3b554 100644 --- a/assets/js/setup-storage.js +++ b/assets/js/setup-storage.js.bvr @@ -1,3 +1,5 @@ +<@?i global@> +// @begin=js@ async function setupStorage(force = false) { let logged_in; promises_check_if_already_installed = [ @@ -18,9 +20,6 @@ async function setupStorage(force = false) { localforage.setItem("messages", [[], [], []]), // 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("theme", "light"), - localforage.setItem("errorReporting", "on"), localforage.setItem("lastUpdate", 0), localforage.setItem("triggerWarningAccepted", false) ]; @@ -34,6 +33,9 @@ async function setupStorage(force = false) { localforage.setItem("logged_in", false), localforage.setItem("username", ""), localforage.setItem("password", ""), + localforage.setItem("chosenLang", "<@?g app_default_language@>"), + localforage.setItem("theme", "light"), + localforage.setItem("errorReporting", "on"), ]; await localforage.clear(); await Promise.all(promises_first_install); |