Skip to content

Commit

Permalink
Recommend an AbortController polyfill which is fully synchronous
Browse files Browse the repository at this point in the history
Fixes #800
  • Loading branch information
JakeChampion committed Jul 30, 2020
1 parent 8572451 commit 9a53ff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -307,11 +307,11 @@ However, aborting a fetch requires use of two additional DOM APIs:
[AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal).
Typically, browsers that do not support fetch will also not support
AbortController or AbortSignal. Consequently, you will need to include
[an additional polyfill](https://github.com/mo/abortcontroller-polyfill#readme)
[an additional polyfill](https://www.npmjs.com/package/yet-another-abortcontroller-polyfill)
for these APIs to abort fetches:

```js
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'
import 'yet-another-abortcontroller-polyfill'
import {fetch} from 'whatwg-fetch'

// use native browser implementation if it supports aborting
Expand Down

0 comments on commit 9a53ff6

Please sign in to comment.