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