summaryrefslogtreecommitdiffstats
path: root/js/setup-storage.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/setup-storage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/setup-storage.js b/js/setup-storage.js
index 0c85a89..a3b7cdd 100644
--- a/js/setup-storage.js
+++ b/js/setup-storage.js
@@ -14,8 +14,8 @@ async function setupStorage(force = false) {
localforage.setItem("gradings", []),
localforage.setItem("grades", []),
localforage.setItem("absences", {}),
- localforage.setItem("messages", [{},{},{}]), // see messages.js:129, commit 8eb9ca9caca30fbbe023243657535ab4088be377
- localforage.setItem("directory", {}),
+ 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", {})
];
if(logged_in && force == false) { // torej, če je že bila prijava narejena, ne posodobi backwards-compatible vrednosti (username, password,...)