fixed page not changing if config was different to db

This commit is contained in:
Jack 2021-04-25 00:27:06 +01:00
parent 69dbbda64a
commit 7addf86ab3

View file

@ -114,7 +114,9 @@ export function getDataAndInit() {
UpdateConfig.apply(DB.getSnapshot().config);
Settings.update();
UpdateConfig.saveToLocalStorage(true);
TestLogic.restart(false, true);
if ($(".page.pageTest").hasClass("active")) {
TestLogic.restart(false, true);
}
}
}
UpdateConfig.setDbConfigLoaded(true);