Skip to content

Commit 66cca61

Browse files
committed
chore: update
1 parent 4961353 commit 66cca61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#f6d2d2">
99
<meta name="msapplication-TileColor" content="#f6d2d2">
1010
<script>
11-
; (function () {
11+
;(function () {
1212
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
13-
const locaApp = localStorage.getItem('app') ? JSON.parse(localStorage.getItem('app')) : ''
14-
if (locaApp.mode === 'dark' || (prefersDark && setting !== 'light'))
13+
const setting = localStorage.getItem('vueuse-color-scheme') || 'auto'
14+
if (setting === 'dark' || (prefersDark && setting !== 'light'))
1515
document.documentElement.classList.toggle('dark', true)
1616
})()
1717
</script>

0 commit comments

Comments
 (0)