diff options
Diffstat (limited to '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 3ac9e99..a057bb4 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -509,12 +509,13 @@ function setupEventListeners() { This message was encrypted by BežiApp. <input type="password" autocomplete="new-password" id="beziapp-msg-e2ee-password-${randomencdivid}" placeholder="Enter password ..."> <input type="button" value="Decrypt" onclick=" + const ENCRYPTED_MESSAGE_REGEX = /<!-- beziapp-e2eemsg-(\d{4}) -->(\S+?)<!-- end-msg -->/g; try { console.log($('beziapp-msg-e2ee-content-${randomencdivid}').text()); $('#beziapp-msg-e2ee-content-${randomencdivid}').html( sjcl.decrypt( $('#beziapp-msg-e2ee-password-${randomencdivid}').val(), - $('beziapp-msg-e2ee-content-${randomencdivid}').text() + ENCRYPTED_MESSAGE_REGEX.exec($('beziapp-msg-e2ee-content-${randomencdivid}').text())[2]; ) ); $('#beziapp-msg-e2ee-content-${randomencdivid}').show(); |