Skip to content

Commit

Permalink
Prevent Illegal invocation Error using transpilers
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Jul 16, 2015
1 parent 84c437f commit 166d055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch-npm-browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
//
// Return that as the export for use in Webpack, Browserify etc.
require('whatwg-fetch');
module.exports = self.fetch;
module.exports = self.fetch.bind(self);

0 comments on commit 166d055

Please sign in to comment.