From c8e11d8e47c4ad5a20a5fd150572d96baa1f02e6 Mon Sep 17 00:00:00 2001 From: ItsSunnyMonster <100400733+ItsSunnyMonster@users.noreply.github.com> Date: Mon, 1 Apr 2024 18:02:33 +1300 Subject: [PATCH] :bug: fix theme color not set correctly on load Fixes #796 by setting the theme color when the DOM loads --- assets/js/appearance.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/js/appearance.js b/assets/js/appearance.js index dd5ad69d..32cd39cb 100644 --- a/assets/js/appearance.js +++ b/assets/js/appearance.js @@ -39,6 +39,7 @@ if (document.documentElement.getAttribute("data-auto-appearance") === "true") { } window.addEventListener("DOMContentLoaded", (event) => { + setThemeColor(); var switchers = document.querySelectorAll("[id^='appearance-switcher']"); switchers.forEach((switcher) => { switcher.addEventListener("click", () => {