From 562caea0fffb8d91b6bfd5fec0b90ae69dcb4d64 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Sun, 23 Jul 2023 18:02:34 +0400 Subject: [PATCH] Bugfix: reloading theme after everything is initialized --- src/components/ThemeModal.astro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/ThemeModal.astro b/src/components/ThemeModal.astro index 1ae7e73..b1cfb56 100644 --- a/src/components/ThemeModal.astro +++ b/src/components/ThemeModal.astro @@ -247,6 +247,11 @@ import TextBox from "./TextBox.astro"; } function reloadTheme() { + if (!lessLoaded) { + setTimeout(reloadTheme, 150) + lessLoaded = true + return + } const accent = '#' + accentOpt.value const bdrs = bdrsOpt.value const purebg = purebgOpt.value