]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix: check document for browser instead of window (#2042)
authorJeff Yang <n2ya@duck.com>
Fri, 1 Dec 2023 19:32:33 +0000 (03:32 +0800)
committerGitHub <noreply@github.com>
Fri, 1 Dec 2023 19:32:33 +0000 (20:32 +0100)
packages/router/src/utils/env.ts

index eb377ab6d266ba0e26b24159ae45675ba0a73934..44f787633ee7db05ebd1a52e40e03c1e48ddcdde 100644 (file)
@@ -1 +1 @@
-export const isBrowser = typeof window !== 'undefined'
+export const isBrowser = typeof document !== 'undefined'