summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--assets/js/gsec.js5
-rwxr-xr-xdist/js/app.js2
-rw-r--r--dist/js/gsec.js5
-rwxr-xr-xdist/pages/about.html2
-rwxr-xr-xdist/sw.js4
5 files changed, 10 insertions, 8 deletions
diff --git a/assets/js/gsec.js b/assets/js/gsec.js
index a3a8bdd..df571f6 100644
--- a/assets/js/gsec.js
+++ b/assets/js/gsec.js
@@ -601,8 +601,9 @@ class gsec {
}
var tume = messageElement.getElementsByClassName("msgSubDate")[0].innerHTML.split(" ")[1];
- tume = tume ?? messageElement.getElementsByClassName("msgSubDate")[0].innerHTML;
-
+ if(tume == null || tume.length < 1) {
+ tume = messageElement.getElementsByClassName("msgSubDate")[0].innerHTML;
+ }
var dateStringToParse = `${date[2]}-${date[1]}-${date[0]} ${tume}`;
var dateObj = new Date(Date.parse(dateStringToParse)); // "tume"!
var person = messageElement.getElementsByClassName("msgDir")[0].innerHTML;
diff --git a/dist/js/app.js b/dist/js/app.js
index f45ab3f..bcaa127 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 = "a078f237a622d6aa01e07199769e427217d79d1c";
+const previous_commit = "0a045055fbfa8a5228f1deeca9d85a4b6a7b0fca";
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.js")
diff --git a/dist/js/gsec.js b/dist/js/gsec.js
index a3a8bdd..df571f6 100644
--- a/dist/js/gsec.js
+++ b/dist/js/gsec.js
@@ -601,8 +601,9 @@ class gsec {
}
var tume = messageElement.getElementsByClassName("msgSubDate")[0].innerHTML.split(" ")[1];
- tume = tume ?? messageElement.getElementsByClassName("msgSubDate")[0].innerHTML;
-
+ if(tume == null || tume.length < 1) {
+ tume = messageElement.getElementsByClassName("msgSubDate")[0].innerHTML;
+ }
var dateStringToParse = `${date[2]}-${date[1]}-${date[0]} ${tume}`;
var dateObj = new Date(Date.parse(dateStringToParse)); // "tume"!
var person = messageElement.getElementsByClassName("msgDir")[0].innerHTML;
diff --git a/dist/pages/about.html b/dist/pages/about.html
index b5897fe..226713d 100755
--- a/dist/pages/about.html
+++ b/dist/pages/about.html
@@ -142,7 +142,7 @@
<div class="row">
<p>
<small>
- ^HEAD a078f237a622d6aa01e07199769e427217d79d1c
+ ^HEAD 0a045055fbfa8a5228f1deeca9d85a4b6a7b0fca
</small>
</p>
</div>
diff --git a/dist/sw.js b/dist/sw.js
index 31e3a02..b64f587 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-a078f23";
-// latest commit is a078f237a622d6aa01e07199769e427217d79d1c
+const static_cache_name = "site-static-1.0.13-beta-0a04505";
+// latest commit is 0a045055fbfa8a5228f1deeca9d85a4b6a7b0fca
// Got them with find . -not -path '*/\.*' | sed "s/.*/\"&\",/" | grep -v sw.js
// sw.js NE SME BITI CACHAN, ker vsebuje verzijo!