fix: comment dark
This commit is contained in:
parent
ae4496d591
commit
7f1fb3906a
@ -23,5 +23,11 @@ export const useDarkMode = (): DarkModeRef => {
|
||||
*/
|
||||
export const setupDarkMode = (): void => {
|
||||
const isDark = ref<boolean>(false)
|
||||
if (
|
||||
typeof document !== 'undefined' &&
|
||||
document.documentElement.classList.contains('dark')
|
||||
) {
|
||||
isDark.value = true
|
||||
}
|
||||
provide(darkModeSymbol, isDark)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user