Simplify html selector (#4)
This commit is contained in:
1 parent
5b07b3865a
commit
06c75ebc8e
1 file changed
+1
-1
+1
-1
@@ -19,7 +19,7 @@ export const isDark = computed({
|
|||||||
watch(
|
watch(
|
||||||
isDark,
|
isDark,
|
||||||
(v) => {
|
(v) => {
|
||||||
const html = document.getElementsByTagName('html')[0]
|
const html = document.documentElement
|
||||||
html.classList.toggle('schema-dark', v)
|
html.classList.toggle('schema-dark', v)
|
||||||
},
|
},
|
||||||
{ immediate: true },
|
{ immediate: true },
|
||||||
|
|||||||
Reference in new issue
Block a user