mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-23 23:42:19 +00:00
set initial theme
This commit is contained in:
parent
f0b675cddc
commit
222f1276c5
1 changed files with 3 additions and 1 deletions
|
@ -38,3 +38,5 @@ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e)
|
||||||
setTheme(newTheme);
|
setTheme(newTheme);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
setTheme(getPreferredTheme());
|
Loading…
Reference in a new issue