mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
chore: add auto option for theme colors
This commit is contained in:
parent
88a3a9f46b
commit
21ae80e27d
4 changed files with 6 additions and 7 deletions
|
@ -114,7 +114,6 @@ function isCurrentDark() {
|
|||
return false
|
||||
if (defaultMode === 'dark')
|
||||
return true
|
||||
// Auto mode or undefined, use system preference
|
||||
return window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue