summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-01 00:06:27 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-01 00:06:27 +0100
commit716f5e0fdb2a3c7861dac754c5782b712ecf1c28 (patch)
treee0bc2b490f2fc8e34a1bc573c69b4fd237f6a5bc /js
parentše enkrat (diff)
downloadbeziapp-716f5e0fdb2a3c7861dac754c5782b712ecf1c28.tar
beziapp-716f5e0fdb2a3c7861dac754c5782b712ecf1c28.tar.gz
beziapp-716f5e0fdb2a3c7861dac754c5782b712ecf1c28.tar.bz2
beziapp-716f5e0fdb2a3c7861dac754c5782b712ecf1c28.tar.lz
beziapp-716f5e0fdb2a3c7861dac754c5782b712ecf1c28.tar.xz
beziapp-716f5e0fdb2a3c7861dac754c5782b712ecf1c28.tar.zst
beziapp-716f5e0fdb2a3c7861dac754c5782b712ecf1c28.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 30fac20..d93ea50 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -395,7 +395,7 @@ function setupEventListeners() {
+"document.getElementById('beziapp-msg-e2ee-content-"+randomencdivid+"').innerHTML=sjcl.decrypt(document.getElementById('beziapp-msg-e2ee-password-"
+randomencdivid+"').value,document.getElementById('beziapp-msg-e2ee-content-"+randomencdivid+"').innerHTML);document.getElementById('beziapp-msg-e2ee-content-"+randomencdivid
+"').hidden=false;document.getElementById('beziapp-msg-e2ee-form-"+randomencdivid+"').hidden=true ></div><div id='beziapp-msg-e2ee-content-"+randomencdivid+"' hidden='hidden'>";
- msgcontent = "<!-- beziapp-e2eemsg-"+msgcontent.length.padStart(4, '0')+" -->"+msgcontent
+ msgcontent = "<!-- beziapp-e2eemsg-"+msgcontent.length.toString().padStart(4, '0')+" -->"+msgcontent
+sjcl.encrypt(document.getElementById("msg-e2ee-pass-input").value, msgcontent)+"</div>";
}
sendMessage(value[document.getElementById("full-name").value], msgsubject,