From 5e4a3be1d981ed5365929ee7c13f568c48c2b96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 1 Mar 2020 00:02:37 +0100 Subject: =?UTF-8?q?=C5=A1e=20enkrat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/messaging.js') 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 = "
This message was encrypted by BežiApp." +"