Skip to content

Commit

Permalink
fix: check document for browser instead of window
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff authored Nov 16, 2023
1 parent bb3fefa commit 9accc4e
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 9accc4e

Please sign in to comment.