From 396700dcf858d070a3fbd26461f1923f46756548 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 6 Nov 2020 19:36:19 +0000 Subject: [PATCH] not loading the config immedietly --- src/js/script.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index e27b09858..a673ea785 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -5234,31 +5234,6 @@ $(document).ready(() => { .removeClass("hidden") .stop(true, true) .animate({ opacity: 1 }, 250, () => { - let theme = findGetParameter("customTheme"); - if (theme !== null) { - try { - theme = theme.split(","); - config.customThemeColors = theme; - showNotification("Custom theme applied", 1000); - let save = []; - $.each( - $(".pageSettings .section.customTheme [type='color']"), - (index, element) => { - save.push($(element).attr("value")); - } - ); - setCustomThemeColors(save); - } catch (e) { - showNotification( - "Something went wrong. Reverting to default custom colors.", - 3000 - ); - config.customThemeColors = defaultConfig.customThemeColors; - } - setCustomTheme(true); - setCustomThemeInputs(); - applyCustomThemeColors(); - } if (window.location.pathname === "/verify") { const fragment = new URLSearchParams(window.location.hash.slice(1)); if (fragment.has("access_token")) {