Skip to content

Commit 1417f30

Browse files
committed
ponify (vercel#1278)
1 parent bb526fd commit 1417f30

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/router/router.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
/* global fetch */
2-
31
import { parse, format } from 'url'
42
import { EventEmitter } from 'events'
53
import evalScript from '../eval-script'
64
import shallowEquals from '../shallow-equals'
75
import PQueue from '../p-queue'
86
import { loadGetInitialProps, getLocationOrigin } from '../utils'
97
import { _notifyBuildIdMismatch } from './'
10-
11-
// Add "fetch" polyfill for older browsers
12-
if (typeof window !== 'undefined') {
13-
require('unfetch/polyfill')
14-
}
8+
import fetch from 'unfetch'
159

1610
export default class Router extends EventEmitter {
1711
constructor (pathname, query, { Component, ErrorComponent, err } = {}) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy