Update various components
This commit is contained in:
@@ -8,7 +8,7 @@ export default function DarkModeSwitch(){
|
||||
|
||||
const updateTheme = () => {
|
||||
if(theme === "system"){
|
||||
if(window.document.documentElement.classList.contains("dark")){
|
||||
if(globalThis.document.documentElement.classList.contains("dark")){
|
||||
setTheme("light");
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in New Issue
Block a user