From cd22c46c4a0977e9d9afcd7b23f629e56e729344 Mon Sep 17 00:00:00 2001 From: Sol Lee <82362278+saul-atomrigs@users.noreply.github.com> Date: Tue, 19 Mar 2024 00:12:14 +0900 Subject: [PATCH] fix: Replace the deprecated 'window' with 'globalThis' for Deno (#2915) --- src/_internal/utils/env.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_internal/utils/env.ts b/src/_internal/utils/env.ts index e3a026c16..c112525c1 100644 --- a/src/_internal/utils/env.ts +++ b/src/_internal/utils/env.ts @@ -3,7 +3,7 @@ import { hasRequestAnimationFrame, isWindowDefined } from './helper' export const IS_REACT_LEGACY = !React.useId -export const IS_SERVER = !isWindowDefined || 'Deno' in window +export const IS_SERVER = !isWindowDefined || 'Deno' in globalThis // Polyfill requestAnimationFrame export const rAF = (