mirror of
https://github.com/gethomepage/homepage.git
synced 2025-08-07 09:01:23 -04:00
Fix: properly handle classlist with light theme (#5612)
This commit is contained in:
parent
0e79501ddc
commit
a4b5e72d82
@ -524,7 +524,7 @@ export default function Wrapper({ initialSettings, fallback }) {
|
||||
const body = document.body;
|
||||
|
||||
html.classList.remove("dark", "scheme-dark", "scheme-light");
|
||||
html.classList.add(theme === "dark" ? "dark" : "");
|
||||
html.classList.toggle("dark", theme === "dark");
|
||||
html.classList.add(theme === "dark" ? "scheme-dark" : "scheme-light");
|
||||
|
||||
html.classList.remove(...Array.from(html.classList).filter((cls) => cls.startsWith("theme-")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user