From 41d2a81a09604f45c32a76b04e784b737525f238 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Mon, 1 Dec 2025 11:29:26 +0800 Subject: [PATCH] fix(theme): fix hybrid mismatch (#763) --- theme/src/client/composables/css-var.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/src/client/composables/css-var.ts b/theme/src/client/composables/css-var.ts index e24dfac8..2d409999 100644 --- a/theme/src/client/composables/css-var.ts +++ b/theme/src/client/composables/css-var.ts @@ -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) {