diff options
Diffstat (limited to 'dist/js/gsec.js')
-rw-r--r-- | dist/js/gsec.js | 5 |
1 files changed, 3 insertions, 2 deletions
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; |