mirror of https://github.com/jpanther/congo.git
🐛 fix theme color not set correctly on load
Fixes #796 by setting the theme color when the DOM loadspull/848/head
parent
50b77b2836
commit
c8e11d8e47
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in New Issue