Remove lag when displaying loading screen in login and register

This commit is contained in:
yflory
2018-02-26 10:41:37 +01:00
parent 599afa4fc5
commit 22f130d948
2 changed files with 4 additions and 6 deletions

View File

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