Remove lag when displaying loading screen in login and register

pull/1/head
yflory 7 years ago
parent 599afa4fc5
commit 22f130d948

@ -191,8 +191,10 @@ define([
window.location.href = '/drive/';
};
var hashing;
Exports.loginOrRegisterUI = function (uname, passwd, isRegister, shouldImport, testing, test) {
var hashing = true;
if (hashing) { return void console.log("hashing is already in progress"); }
hashing = true;
var proceed = function (result) {
hashing = false;
@ -275,7 +277,7 @@ define([
proceed(result);
});
}, 0);
}, 500);
}, 200);
};

@ -53,12 +53,8 @@ define([
$('button.login').click();
});
var hashing = false;
var test;
$('button.login').click(function () {
if (hashing) { return void console.log("hashing is already in progress"); }
hashing = true;
var shouldImport = $checkImport[0].checked;
var uname = $uname.val();
var passwd = $passwd.val();

Loading…
Cancel
Save