summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/messaging.js2
-rw-r--r--js/setup-storage.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/messaging.js b/js/messaging.js
index 86d90e7..d3ebdd0 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -232,7 +232,7 @@ async function deleteMsg(id) {
"u": username,
"p": password,
"m": "izbrisisporocilo",
- "a": id.replace(/_/g, "|")
+ "a": id
},
dataType: "json",
cache: false,
diff --git a/js/setup-storage.js b/js/setup-storage.js
index 0fe3fef..0c85a89 100644
--- a/js/setup-storage.js
+++ b/js/setup-storage.js
@@ -14,7 +14,7 @@ async function setupStorage(force = false) {
localforage.setItem("gradings", []),
localforage.setItem("grades", []),
localforage.setItem("absences", {}),
- localforage.setItem("messages", {}),
+ localforage.setItem("messages", [{},{},{}]), // see messages.js:129, commit 8eb9ca9caca30fbbe023243657535ab4088be377
localforage.setItem("directory", {}),
localforage.setItem("meals", {})
];