Bugfix: reloading theme after everything is initialized

This commit is contained in:
DarkCat09 2023-07-23 18:02:34 +04:00
parent e5b08e772a
commit 562caea0ff

View file

@ -247,6 +247,11 @@ import TextBox from "./TextBox.astro";
} }
function reloadTheme() { function reloadTheme() {
if (!lessLoaded) {
setTimeout(reloadTheme, 150)
lessLoaded = true
return
}
const accent = '#' + accentOpt.value const accent = '#' + accentOpt.value
const bdrs = bdrsOpt.value const bdrs = bdrsOpt.value
const purebg = purebgOpt.value const purebg = purebgOpt.value