Commit 1417f304 authored by Guillermo Rauch's avatar Guillermo Rauch

ponify (#1278)

parent bb526fdf
/* global fetch */
import { parse, format } from 'url' import { parse, format } from 'url'
import { EventEmitter } from 'events' import { EventEmitter } from 'events'
import evalScript from '../eval-script' import evalScript from '../eval-script'
...@@ -7,11 +5,7 @@ import shallowEquals from '../shallow-equals' ...@@ -7,11 +5,7 @@ import shallowEquals from '../shallow-equals'
import PQueue from '../p-queue' import PQueue from '../p-queue'
import { loadGetInitialProps, getLocationOrigin } from '../utils' import { loadGetInitialProps, getLocationOrigin } from '../utils'
import { _notifyBuildIdMismatch } from './' import { _notifyBuildIdMismatch } from './'
import fetch from 'unfetch'
// Add "fetch" polyfill for older browsers
if (typeof window !== 'undefined') {
require('unfetch/polyfill')
}
export default class Router extends EventEmitter { export default class Router extends EventEmitter {
constructor (pathname, query, { Component, ErrorComponent, err } = {}) { constructor (pathname, query, { Component, ErrorComponent, err } = {}) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment