restore deleted line and add missing semicolon

pull/1/head
ansuz 2017-06-01 10:35:42 +02:00
parent 26251a5c9c
commit c65ca5cfc6
1 changed files with 2 additions and 1 deletions

View File

@ -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);
});
});