Reformat code
This commit is contained in:
parent
7b9f4469c8
commit
d48786971b
22 changed files with 85 additions and 122 deletions
|
|
@ -1,6 +1,5 @@
|
|||
export const isSystemLevelDarkModeEnabled = (): boolean =>
|
||||
window.matchMedia &&
|
||||
window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
matchMedia && matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
|
||||
export const turnOnDarkMode = () =>
|
||||
document.body.parentElement.setAttribute('theme', 'dark');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue