diff options
Diffstat (limited to 'js/messaging.js')
-rw-r--r-- | js/messaging.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/messaging.js b/js/messaging.js index 77002d0..145711d 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -165,6 +165,7 @@ async function loadMessages(force_refresh = true, katera = 0) { } async function loadMsg(id) { + setLoading(true); // Load required data let promises_to_run = [ @@ -254,7 +255,7 @@ async function deleteMsg(id) { function displayMessage(id, data) { let regex_results = ENCRYPTED_MESSAGE_REGEX.exec(data["telo"]); if (regex_results != null) { - var datatodecrypt = regex_results[2]; // length-6 da zbrišemo zadnji </div> + var datatodecrypt = regex_results[2]; var randomencdivid = Math.floor(Math.random() * 9999).toString().padStart(4, "0"); var msgcontent = ` |