mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-07 16:05:12 +08:00
fixed config loaded log appearing a lo
This commit is contained in:
parent
89d659cf7b
commit
5630196dfd
2 changed files with 2 additions and 3 deletions
|
|
@ -226,7 +226,6 @@ firebase.auth().onAuthStateChanged(function (user) {
|
|||
db_getUserSnapshot().then((e) => {
|
||||
if (!configChangedBeforeDb) {
|
||||
if (cookieConfig === null) {
|
||||
dbConfigLoaded = true;
|
||||
accountIconLoading(false);
|
||||
applyConfig(dbSnapshot.config);
|
||||
// showNotification('Applying db config',3000);
|
||||
|
|
@ -255,13 +254,13 @@ firebase.auth().onAuthStateChanged(function (user) {
|
|||
}
|
||||
});
|
||||
if (configsDifferent) {
|
||||
dbConfigLoaded = true;
|
||||
accountIconLoading(false);
|
||||
applyConfig(dbSnapshot.config);
|
||||
updateSettingsPage();
|
||||
saveConfigToCookie(true);
|
||||
}
|
||||
}
|
||||
dbConfigLoaded = true;
|
||||
} else {
|
||||
accountIconLoading(false);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1986,7 +1986,7 @@ function showResult(difficultyFailed = false) {
|
|||
|
||||
function startTest() {
|
||||
if (!dbConfigLoaded) {
|
||||
console.log("config changed before db loaded!");
|
||||
// console.log("config changed before db loaded!");
|
||||
configChangedBeforeDb = true;
|
||||
}
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue