mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-27 06:44:07 -06:00
default light
This commit is contained in:
parent
1797564450
commit
762b552746
@ -1,4 +1,5 @@
|
|||||||
const userPref = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark'
|
// const userPref = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark'
|
||||||
|
const userPref = 'light'
|
||||||
const currentTheme = localStorage.getItem('theme') ?? userPref
|
const currentTheme = localStorage.getItem('theme') ?? userPref
|
||||||
|
|
||||||
if (currentTheme) {
|
if (currentTheme) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user