Skip to content

Commit

Permalink
Update link.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
damusnet authored Dec 4, 2020
1 parent b403e9e commit a9244d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/client/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function prefetch(
as: string,
options?: PrefetchOptions
): void {
if (!router) return
if (typeof window === 'undefined') return
if (!isLocalURL(href)) return
// Prefetch the JSON page if asked (only in the client)
Expand Down

0 comments on commit a9244d2

Please sign in to comment.