Reverting theme selector but keeping dark as default

This commit is contained in:
Sharwin24 2024-12-27 14:24:21 -08:00
parent 9e1d1ec840
commit a20e284300
2 changed files with 2 additions and 2 deletions

View file

@ -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)