mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 21:51:29 +08:00
added logs
This commit is contained in:
parent
ad10fec7e4
commit
f4480771d2
1 changed files with 4 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ export function toggleFilterDebug() {
|
|||
|
||||
export async function getDataAndInit() {
|
||||
try {
|
||||
console.log("getting account data");
|
||||
await DB.initSnapshot();
|
||||
} catch (e) {
|
||||
AccountButton.loading(false);
|
||||
|
|
@ -131,8 +132,9 @@ export async function getDataAndInit() {
|
|||
}
|
||||
}
|
||||
// if($(".pageAccount").hasClass('active')) update();
|
||||
if ($(".pageLogin").hasClass("active")) UI.changePage("account");
|
||||
// if ($(".pageLogin").hasClass("active")) UI.changePage("account");
|
||||
if (!UpdateConfig.changedBeforeDb) {
|
||||
console.log("config changed before db");
|
||||
if (Config.localStorageConfig === null) {
|
||||
AccountButton.loading(false);
|
||||
UpdateConfig.apply(DB.getSnapshot().config);
|
||||
|
|
@ -210,6 +212,7 @@ export async function getDataAndInit() {
|
|||
ResultTagsPopup.updateButtons();
|
||||
Settings.showAccountSection();
|
||||
UI.setPageTransition(false);
|
||||
console.log("account loading finished");
|
||||
if ($(".pageLoading").hasClass("active")) UI.changePage("");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue