🔀 Merge pull request #848 from ItsSunnyMonster/dev

🐛 fix theme color not set correctly on load
dev
James Panther 2024-04-17 10:19:04 +10:00 committed by GitHub
commit 8866702717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ if (document.documentElement.getAttribute("data-auto-appearance") === "true") {
} }
window.addEventListener("DOMContentLoaded", (event) => { window.addEventListener("DOMContentLoaded", (event) => {
setThemeColor();
var switchers = document.querySelectorAll("[id^='appearance-switcher']"); var switchers = document.querySelectorAll("[id^='appearance-switcher']");
switchers.forEach((switcher) => { switchers.forEach((switcher) => {
switcher.addEventListener("click", () => { switcher.addEventListener("click", () => {