summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-14 12:22:26 +0200
committerrstular <rok@stular.eu>2020-05-14 12:22:26 +0200
commitf34d2b0069244ad7358aac84523b7fada296499a (patch)
tree535142fe1f2bcd507c42fd41edc2502912d81f72 /js
parentLogging/debugging code (diff)
downloadbeziapp-f34d2b0069244ad7358aac84523b7fada296499a.tar
beziapp-f34d2b0069244ad7358aac84523b7fada296499a.tar.gz
beziapp-f34d2b0069244ad7358aac84523b7fada296499a.tar.bz2
beziapp-f34d2b0069244ad7358aac84523b7fada296499a.tar.lz
beziapp-f34d2b0069244ad7358aac84523b7fada296499a.tar.xz
beziapp-f34d2b0069244ad7358aac84523b7fada296499a.tar.zst
beziapp-f34d2b0069244ad7358aac84523b7fada296499a.zip
Diffstat (limited to 'js')
-rw-r--r--js/messaging.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/messaging.js b/js/messaging.js
index 765f919..1aa88cb 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -254,7 +254,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[1]; // length-6 da zbrišemo zadnji </div>
+ var datatodecrypt = regex_results[2]; // length-6 da zbrišemo zadnji </div>
var randomencdivid = Math.floor(Math.random() * 9999).toString().padStart(4, "0");
var msgcontent = `