summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdist/js/app.js2
-rw-r--r--dist/js/messaging.js21
-rwxr-xr-xdist/pages/about.html2
-rwxr-xr-xdist/sw.js4
4 files changed, 16 insertions, 13 deletions
diff --git a/dist/js/app.js b/dist/js/app.js
index 07197bb..d9a5e16 100755
--- a/dist/js/app.js
+++ b/dist/js/app.js
@@ -3,7 +3,7 @@
const app_version = "1.0.13-beta";
-const previous_commit = "f4aa5ca7f0ee77f5b26ff3f9d1b5c9f25cd1d2cb";
+const previous_commit = "2eaa58fd631705101eeb6a946f548f936747c30e";
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.js")
diff --git a/dist/js/messaging.js b/dist/js/messaging.js
index f829cd5..34963a3 100644
--- a/dist/js/messaging.js
+++ b/dist/js/messaging.js
@@ -375,15 +375,18 @@ function displayData(messageType) {
// -1 = cumulative
function getNumMessages(messageType = -1) {
- if (messageType === -1) {
- let sum = 0;
- for (const [messageType, messageList] of Object.entries(messages)) {
- sum += messageList.length;
- }
- return sum;
- } else {
- return (messages[messageType].length ?? 0);
- }
+ if (messageType === -1) {
+ let sum = 0;
+ for (const [messageType, messageList] of Object.entries(messages)) {
+ sum += messageList.length;
+ }
+ return sum;
+ } else {
+ var what_to_return = messages[messageType].length;
+ if(what_to_return == null)
+ return 0
+ return what_to_return;
+ }
}
async function sendMessage(recipient_number, subject, body) {
diff --git a/dist/pages/about.html b/dist/pages/about.html
index 7d8992d..5229181 100755
--- a/dist/pages/about.html
+++ b/dist/pages/about.html
@@ -142,7 +142,7 @@
<div class="row">
<p>
<small>
- ^HEAD f4aa5ca7f0ee77f5b26ff3f9d1b5c9f25cd1d2cb
+ ^HEAD 2eaa58fd631705101eeb6a946f548f936747c30e
</small>
</p>
</div>
diff --git a/dist/sw.js b/dist/sw.js
index 010f9f3..719f3a1 100755
--- a/dist/sw.js
+++ b/dist/sw.js
@@ -3,8 +3,8 @@
// Change version to cause cache refresh
-const static_cache_name = "site-static-1.0.13-beta-f4aa5ca";
-// latest commit is f4aa5ca7f0ee77f5b26ff3f9d1b5c9f25cd1d2cb
+const static_cache_name = "site-static-1.0.13-beta-2eaa58f";
+// latest commit is 2eaa58fd631705101eeb6a946f548f936747c30e
// Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js
// sw.js NE SME BITI CACHAN, ker vsebuje verzijo!