Skip to content

Commit 09e175b

Browse files
author
Philippe Masset
committed
Add fetch polyfill
1 parent 96dbe6b commit 09e175b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Request.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* and pass it as a string through settings.body, and JSON.parse() that payload on
1515
* the server. Additions welcome!
1616
*/
17+
import 'whatwg-fetch';
1718

1819
class Request {
1920
static send(url, data = {}, settings = {}) {

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@
2020
"eslint-plugin-import": "2.2.0",
2121
"eslint-plugin-jsx-a11y": "2.2.3",
2222
"eslint-plugin-react": "6.6.0"
23+
},
24+
"dependencies": {
25+
"whatwg-fetch": "0.11.1"
2326
}
2427
}

0 commit comments

Comments
 (0)