From 16ebc21ebd2a210d008231cd37665049779c783d Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 11 Feb 2022 19:48:46 +0100 Subject: [PATCH] removed unnecessary code --- frontend/src/js/pages/account.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/frontend/src/js/pages/account.js b/frontend/src/js/pages/account.js index 6922d24f2..e27c8f5e8 100644 --- a/frontend/src/js/pages/account.js +++ b/frontend/src/js/pages/account.js @@ -63,7 +63,6 @@ export async function getDataAndInit() { let msg = e?.response?.data?.message ?? e?.response?.data ?? e?.message; Notifications.add("Failed to get user data: " + msg, -1); - // $("#top #menu .account .icon").html(''); $("#top #menu .account").css("opacity", 1); if (ActivePage.get() == "loading") PageController.change(""); return false; @@ -228,13 +227,6 @@ export async function getDataAndInit() { PaceCaret.init(true); } } - // if ( - // ActivePage.get() == "login" || - // window.location.pathname === "/account" - // ) { - // PageController.change("account"); - // } - // ThemePicker.refreshButtons(); AccountButton.loading(false); ResultFilters.updateTags(); CommandlineLists.updateTagCommands(); @@ -243,11 +235,6 @@ export async function getDataAndInit() { Settings.showAccountSection(); PageTransition.set(false); console.log("account loading finished"); - // if (ActivePage.get() == "loading") { - // LoadingPage.updateBar(100, true); - // Focus.set(false); - // PageController.change(""); - // } } let filteredResults = []; @@ -1073,10 +1060,6 @@ export function update() { if (d) { ResultFilters.updateActive(); update(); - } else { - setTimeout(() => { - PageController.change(""); - }, 500); } }); } else {