Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
move some code
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry de Graaff committed Feb 2, 2017
1 parent 3269be5 commit 3fbd68a
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -1433,16 +1433,15 @@ function(fArguments) {
var message = openpgp.message.readArmored(fArguments['message']);
}
catch(err) {
document.getElementById("privateKeyInput").style.backgroundImage = "url('')";
this._dialog.setButtonVisible(DwtDialog.CANCEL_BUTTON, true);
this._dialog.setButtonVisible(DwtDialog.OK_BUTTON, true);

try {
//one last final try..
var message = openpgp.message.readArmored(OpenPGPZimlet.prototype.quoted_printable_decode(fArguments['message']));
}
catch(err)
{
document.getElementById("privateKeyInput").style.backgroundImage = "url('')";
this._dialog.setButtonVisible(DwtDialog.CANCEL_BUTTON, true);
this._dialog.setButtonVisible(DwtDialog.OK_BUTTON, true);
//Could not read armored message!
this.status(OpenPGPZimlet.lang[7], ZmStatusView.LEVEL_CRITICAL);
return;
Expand Down

0 comments on commit 3fbd68a

Please sign in to comment.