mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
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