Skip to content

Commit 50a839f

Browse files
committed
Merge pull request #1 from zbyte64/master
fix to get around Illegal invocation error in chrome
2 parents d57ed41 + 877c47c commit 50a839f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/react-fetch.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import React from 'react/addons'
2-
import fetch from 'isomorphic-fetch'
2+
3+
//this is to hack around a bug, see:
4+
//https://github.com/matthew-andrews/isomorphic-fetch/pull/20
5+
//import fetch from 'isomorphic-fetch'
6+
import fetch_ from 'isomorphic-fetch';
7+
var fetch = fetch_.bind(undefined);
38

49
export default class Fetch extends React.Component{
510

0 commit comments

Comments
 (0)