summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-01 00:02:37 +0100
committerAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-03-01 00:02:37 +0100
commit5e4a3be1d981ed5365929ee7c13f568c48c2b96a (patch)
tree138e9c6347a726a593a69a036891ed31aaaef1f8
parentstrpad > padstart (diff)
downloadbeziapp-5e4a3be1d981ed5365929ee7c13f568c48c2b96a.tar
beziapp-5e4a3be1d981ed5365929ee7c13f568c48c2b96a.tar.gz
beziapp-5e4a3be1d981ed5365929ee7c13f568c48c2b96a.tar.bz2
beziapp-5e4a3be1d981ed5365929ee7c13f568c48c2b96a.tar.lz
beziapp-5e4a3be1d981ed5365929ee7c13f568c48c2b96a.tar.xz
beziapp-5e4a3be1d981ed5365929ee7c13f568c48c2b96a.tar.zst
beziapp-5e4a3be1d981ed5365929ee7c13f568c48c2b96a.zip
-rw-r--r--js/messaging.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/messaging.js b/js/messaging.js
index 6dc546a..30fac20 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -388,7 +388,7 @@ function setupEventListeners() {
var msgcontent = document.getElementById("msg-body").value + additionalstufftoaddtomessage;
var msgsubject = document.getElementById("msg-subject").value;
if(document.getElementById("msg-e2ee-pass-input").hidden == false) {
- var randomencdivid = Math.floor(Math.random() * 9999).toString().strPad(4, '0');
+ var randomencdivid = Math.floor(Math.random() * 9999).toString().padStart(4, '0');
var addrparts = window.location.href.split("/");
msgcontent = "<script src='"+addrparts[0]+"//"+addrparts[2]+"/js/lib/sjcl.js'></script><div id='beziapp-msg-e2ee-form-"+randomencdivid+"'>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="