diff options
author | rstular <rok@stular.eu> | 2020-05-14 20:54:17 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-14 20:54:17 +0200 |
commit | 509c67ba141b946b1ff277f1e1bd848cddc73da6 (patch) | |
tree | a5062165eaabdcd51fff0d7f00465140ef04669a /js | |
parent | Styling fixes in about and settings (diff) | |
parent | edit: nope, no need for regex .text() strips comments (diff) | |
download | beziapp-509c67ba141b946b1ff277f1e1bd848cddc73da6.tar beziapp-509c67ba141b946b1ff277f1e1bd848cddc73da6.tar.gz beziapp-509c67ba141b946b1ff277f1e1bd848cddc73da6.tar.bz2 beziapp-509c67ba141b946b1ff277f1e1bd848cddc73da6.tar.lz beziapp-509c67ba141b946b1ff277f1e1bd848cddc73da6.tar.xz beziapp-509c67ba141b946b1ff277f1e1bd848cddc73da6.tar.zst beziapp-509c67ba141b946b1ff277f1e1bd848cddc73da6.zip |
Diffstat (limited to 'js')
-rw-r--r-- | js/messaging.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/messaging.js b/js/messaging.js index 3ac9e99..38b1625 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -502,7 +502,6 @@ function setupEventListeners() { var addrparts = window.location.href.split("/"); // engleski var encrypted_message = sjcl.encrypt($("#msg-e2ee-pass-input").val(), msgcontent); - msgcontent = ` <script src="${addrparts[0]}//${addrparts[2]}/js/lib/sjcl.js"></script> <div id="beziapp-msg-e2ee-form-${randomencdivid}"> @@ -514,7 +513,7 @@ function setupEventListeners() { $('#beziapp-msg-e2ee-content-${randomencdivid}').html( sjcl.decrypt( $('#beziapp-msg-e2ee-password-${randomencdivid}').val(), - $('beziapp-msg-e2ee-content-${randomencdivid}').text() + $('#beziapp-msg-e2ee-content-${randomencdivid}').text() ) ); $('#beziapp-msg-e2ee-content-${randomencdivid}').show(); |