Skip to content

Commit

Permalink
Fixed node-fetch for Safari (todo: push this fix upstream to node-fet…
Browse files Browse the repository at this point in the history
…ch).
  • Loading branch information
ricmoo committed Jun 12, 2019
1 parent 62201c5 commit 7164e51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/src.ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";

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

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

0 comments on commit 7164e51

Please sign in to comment.