mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-09-18 23:35:51 +00:00
set initial theme
This commit is contained in:
parent
f0b675cddc
commit
222f1276c5
|
@ -37,4 +37,6 @@ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e)
|
||||||
const newTheme = e.matches ? 'dark' : 'light';
|
const newTheme = e.matches ? 'dark' : 'light';
|
||||||
setTheme(newTheme);
|
setTheme(newTheme);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
setTheme(getPreferredTheme());
|
Loading…
Reference in a new issue