🔀 Merge pull request #848 from ItsSunnyMonster/dev

🐛 fix theme color not set correctly on load
This commit is contained in:
James Panther
2024-04-17 10:19:04 +10:00
committed by GitHub
+1
View File
@@ -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", () => {