fixed config loaded log appearing a lo

This commit is contained in:
Jack 2020-08-21 02:31:08 +01:00
parent 89d659cf7b
commit 5630196dfd
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -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 {