diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-05-20 17:28:19 +0200 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-05-20 17:28:19 +0200 |
commit | 5de19af5e33c527e4b47091b5eba010f002b73eb (patch) | |
tree | 0f5cd42ca465f53513b2bcb0fb9ee28ab7456379 /dist | |
parent | replaced more geeky operators (diff) | |
download | beziapp-5de19af5e33c527e4b47091b5eba010f002b73eb.tar beziapp-5de19af5e33c527e4b47091b5eba010f002b73eb.tar.gz beziapp-5de19af5e33c527e4b47091b5eba010f002b73eb.tar.bz2 beziapp-5de19af5e33c527e4b47091b5eba010f002b73eb.tar.lz beziapp-5de19af5e33c527e4b47091b5eba010f002b73eb.tar.xz beziapp-5de19af5e33c527e4b47091b5eba010f002b73eb.tar.zst beziapp-5de19af5e33c527e4b47091b5eba010f002b73eb.zip |
Diffstat (limited to 'dist')
-rwxr-xr-x | dist/js/app.js | 2 | ||||
-rw-r--r-- | dist/js/messaging.js | 21 | ||||
-rwxr-xr-x | dist/pages/about.html | 2 | ||||
-rwxr-xr-x | dist/sw.js | 4 |
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> @@ -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! |