fix(theme): fix hybrid mismatch (#763)
This commit is contained in:
parent
6a3babcf76
commit
41d2a81a09
@ -14,7 +14,7 @@ export function useCssVar(
|
||||
const variable = shallowRef(initialValue)
|
||||
|
||||
function updateCssVar() {
|
||||
const _window = typeof window ? window : null
|
||||
const _window = typeof window !== 'undefined' ? window : null
|
||||
const target = _window?.document?.documentElement
|
||||
const key = toValue(prop)
|
||||
if (target && key) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user