Skip to content

Commit

Permalink
Move from node-fetch to cross-fetch; better browser fallback implemen…
Browse files Browse the repository at this point in the history
…tation.
  • Loading branch information
ricmoo committed Jun 12, 2019
1 parent de93409 commit 826ffbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/web/src.ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use strict";

import { default as _fetch, Response, RequestInfo, RequestInit } from "node-fetch";
const fetch: (url: RequestInfo, options: RequestInit) => Promise<Response> = _fetch.bind(global);
import fetch from "cross-fetch";

import { encode as base64Encode } from "@ethersproject/base64";
import * as errors from "@ethersproject/errors";
Expand Down

0 comments on commit 826ffbc

Please sign in to comment.