Skip to content

Commit

Permalink
fix: check document for browser instead of window (#2042)
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff authored Dec 1, 2023
1 parent 4555a35 commit 5631732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/router/src/utils/env.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const isBrowser = typeof window !== 'undefined'
export const isBrowser = typeof document !== 'undefined'

0 comments on commit 5631732

Please sign in to comment.