Reverting theme selector but keeping dark as default
This commit is contained in:
parent
9e1d1ec840
commit
a20e284300
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ if (theme === 'system') {
|
|||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
theme = 'dark'
|
||||
} else {
|
||||
theme = 'dark'
|
||||
theme = 'light'
|
||||
}
|
||||
}
|
||||
document.documentElement.setAttribute('data-theme', theme)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue