From f63a682eafa9383f331f696c5f3b1843fb0be558 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 29 Mar 2021 01:01:12 +0100 Subject: [PATCH] removed uneccesary comment, marked comment to not be deleted --- src/js/account.js | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/src/js/account.js b/src/js/account.js index 41a5c9d08..c64370a83 100644 --- a/src/js/account.js +++ b/src/js/account.js @@ -362,6 +362,7 @@ function getAccountDataAndInit() { UpdateConfig.saveToCookie(true); TestLogic.restart(false, true); } else if (DB.getSnapshot().config !== undefined) { + //loading db config, keep for now // let configsDifferent = false; // Object.keys(config).forEach((key) => { // if (!configsDifferent) { @@ -413,36 +414,6 @@ function getAccountDataAndInit() { PaceCaret.init(true); } } - // try { - // if ( - // Config.resultFilters === undefined || - // Config.resultFilters === null || - // Config.resultFilters.difficulty === undefined - // ) { - // if ( - // DB.getSnapshot().Config.resultFilters == null || - // DB.getSnapshot().Config.resultFilters.difficulty === undefined - // ) { - // ConfigSet.resultFilters(defaultAccountFilters); - // } else { - // ConfigSet.resultFilters(DB.getSnapshot().Config.resultFilters); - // } - // } - // } catch (e) { - // ConfigSet.resultFilters(defaultAccountFilters); - // } - // if ( - // Object.keys(Config.resultFilters.language).length !== - // Object.keys(defaultAccountFilters.language).length - // ) { - // ConfigSet.resultFilters.language(defaultAccountFilters.language); - // } - // if ( - // Object.keys(Config.resultFilters.funbox).length !== - // Object.keys(defaultAccountFilters.funbox).length - // ) { - // ConfigSet.resultFilters.funbox(defaultAccountFilters.funbox); - // } if ( $(".pageLogin").hasClass("active") || window.location.pathname === "/account"