From c65ca5cfc6f81cff3329c4468de77523ffe5b237 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 1 Jun 2017 10:35:42 +0200 Subject: [PATCH] restore deleted line and add missing semicolon --- www/register/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/register/main.js b/www/register/main.js index b53a142f1..bdaca5197 100644 --- a/www/register/main.js +++ b/www/register/main.js @@ -143,6 +143,7 @@ define([ case 'ALREADY_REGISTERED': Cryptpad.removeLoadingScreen(function () { Cryptpad.confirm(Messages.register_alreadyRegistered, function (yes) { + if (!yes) { return; } proxy.login_name = uname; if (!proxy[Cryptpad.displayNameKey]) { @@ -194,7 +195,7 @@ define([ $register.click(); window.setTimeout(function () { - Cryptpad.findOKButton().click() + Cryptpad.findOKButton().click(); }, 1000); }); });