chore: initial commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
(function () {
|
||||
try {
|
||||
var t = localStorage.getItem('theme')
|
||||
if (t !== 'light' && t !== 'dark') t = matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
||||
document.documentElement.dataset.theme = t
|
||||
} catch (e) {}
|
||||
})()
|
||||
Reference in New Issue
Block a user