Skip to content

Commit 5631732

Browse files
authored
fix: check document for browser instead of window (#2042)
1 parent 4555a35 commit 5631732

File tree

1 file changed

+1
-1
lines changed
  • packages/router/src/utils

1 file changed

+1
-1
lines changed

packages/router/src/utils/env.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const isBrowser = typeof window !== 'undefined'
1+
export const isBrowser = typeof document !== 'undefined'

0 commit comments

Comments
 (0)