Skip to content

Commit

Permalink
fix: Replace the deprecated 'window' with 'globalThis' for Deno (#2915)
Browse files Browse the repository at this point in the history
  • Loading branch information
saul-atomrigs authored Mar 18, 2024
1 parent 85219cc commit cd22c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_internal/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit cd22c46

Please sign in to comment.