mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-02 06:26:12 -04:00
🐛 fix theme color not set correctly on load
Fixes #796 by setting the theme color when the DOM loads
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user