aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-07-21 04:51:12 +0800
committerGitHub <noreply@github.com>2018-07-21 04:51:12 +0800
commite54501522dcf93521c8ff7dfe5b216cffeaa1b29 (patch)
tree70b54c3ccd83d964f78e7569361e775556a456b5 /packages/utils/src
parentdc151f7290072c9776c9b351ae30bf577fcd1015 (diff)
parentf2baeddc301206889f8ee2bdb80b0018e03e411f (diff)
downloaddexon-sol-tools-e54501522dcf93521c8ff7dfe5b216cffeaa1b29.tar
dexon-sol-tools-e54501522dcf93521c8ff7dfe5b216cffeaa1b29.tar.gz
dexon-sol-tools-e54501522dcf93521c8ff7dfe5b216cffeaa1b29.tar.bz2
dexon-sol-tools-e54501522dcf93521c8ff7dfe5b216cffeaa1b29.tar.lz
dexon-sol-tools-e54501522dcf93521c8ff7dfe5b216cffeaa1b29.tar.xz
dexon-sol-tools-e54501522dcf93521c8ff7dfe5b216cffeaa1b29.tar.zst
dexon-sol-tools-e54501522dcf93521c8ff7dfe5b216cffeaa1b29.zip
Merge pull request #903 from 0xProject/bug/website/fix-website
Add AbortController polyfill to fetchAsync in utils
Diffstat (limited to 'packages/utils/src')
-rw-r--r--packages/utils/src/fetchAsync.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/utils/src/fetchAsync.ts b/packages/utils/src/fetchAsync.ts
index c02e5baba..b4c85718d 100644
--- a/packages/utils/src/fetchAsync.ts
+++ b/packages/utils/src/fetchAsync.ts
@@ -1,5 +1,8 @@
import isNode = require('detect-node');
import 'isomorphic-fetch';
+// WARNING: This needs to be imported after isomorphic-fetch: https://github.com/mo/abortcontroller-polyfill#using-it-on-browsers-without-fetch
+// tslint:disable-next-line:ordered-imports
+import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only';
export const fetchAsync = async (
endpoint: string,