mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-21 18:52:17 +00:00
set initial theme
This commit is contained in:
parent
f0b675cddc
commit
222f1276c5
1 changed files with 3 additions and 1 deletions
|
@ -37,4 +37,6 @@ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e)
|
|||
const newTheme = e.matches ? 'dark' : 'light';
|
||||
setTheme(newTheme);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
setTheme(getPreferredTheme());
|
Loading…
Reference in a new issue