mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
properly restarting the test after db is loaded
This commit is contained in:
parent
5100dea58d
commit
b4871a3136
1 changed files with 4 additions and 0 deletions
|
@ -12,11 +12,13 @@ $(".pageLogin .register .button").click((e) => {
|
|||
|
||||
$(".pageLogin .login input").keyup((e) => {
|
||||
if (e.key == "Enter") {
|
||||
configChangedBeforeDb = false;
|
||||
signIn();
|
||||
}
|
||||
});
|
||||
|
||||
$(".pageLogin .login .button").click((e) => {
|
||||
configChangedBeforeDb = false;
|
||||
signIn();
|
||||
});
|
||||
|
||||
|
@ -289,6 +291,7 @@ function getAccountDataAndInit() {
|
|||
// showNotification('Applying db config',3000);
|
||||
updateSettingsPage();
|
||||
saveConfigToCookie(true);
|
||||
restartTest(false, true);
|
||||
} else if (dbSnapshot.config !== undefined) {
|
||||
let configsDifferent = false;
|
||||
Object.keys(config).forEach((key) => {
|
||||
|
@ -323,6 +326,7 @@ function getAccountDataAndInit() {
|
|||
applyConfig(config);
|
||||
updateSettingsPage();
|
||||
saveConfigToCookie(true);
|
||||
restartTest(false, true);
|
||||
}
|
||||
}
|
||||
dbConfigLoaded = true;
|
||||
|
|
Loading…
Reference in a new issue