From 5bce54d971637b4976f705f40e01138320983323 Mon Sep 17 00:00:00 2001 From: rstular Date: Fri, 15 May 2020 00:40:56 +0200 Subject: Indentation fix --- js/messaging.js | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'js') diff --git a/js/messaging.js b/js/messaging.js index d3ebdd0..646c088 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -271,20 +271,20 @@ function displayMessage(id, data) { value="Decrypt" class="btn waves-effect waves-light" onclick=" - try { + try { $('#beziapp-msg-e2ee-content-${randomencdivid}').html( filterXSS( sjcl.decrypt( - $('#beziapp-msg-e2ee-password-${randomencdivid}').val(), - $('#beziapp-msg-e2ee-content-${randomencdivid}').html() + $('#beziapp-msg-e2ee-password-${randomencdivid}').val(), + $('#beziapp-msg-e2ee-content-${randomencdivid}').html() ) ) ); - $('#beziapp-msg-e2ee-content-${randomencdivid}').show(); - $('#beziapp-msg-e2ee-form-${randomencdivid}').hide(); - } catch (err) { - alert('${D("incorrectPassword")}'); - } + $('#beziapp-msg-e2ee-content-${randomencdivid}').show(); + $('#beziapp-msg-e2ee-form-${randomencdivid}').hide(); + } catch (err) { + alert('${D("incorrectPassword")}'); + } " > ${S("decrypt")} @@ -508,7 +508,7 @@ function setupEventListeners() { This message was encrypted by BežiApp. + } catch(err) { + alert('${D("incorrectPassword")}'); + } + ">