Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
polyfill fetch because it doesn't work yet on Safari #150
Browse files Browse the repository at this point in the history
  • Loading branch information
larrysalibra committed Jan 20, 2017
1 parent 49dd3f3 commit cc81bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/js/utils/proxy-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* Proxies all fetch requests to work around
* CORS issues
*/
let realFetch = window.fetch
import fetch from 'isomorphic-fetch'
let realFetch = fetch

let proxy = "http://localhost:1337/"

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
"ecurve": "^1.0.4",
"hasprop": "0.0.4",
"is-retina": "^1.0.3",
"isomorphic-fetch": "^2.2.1",
"jwt-js": "^0.5.0",
"lodash": "^4.17.2",
"query-string": "^4.2.3",
Expand Down

0 comments on commit cc81bc6

Please sign in to comment.