From 166d05511167af6784beb2fdf830bd8b86d879ef Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 16 Jul 2015 11:53:02 +0100 Subject: [PATCH] Prevent Illegal invocation Error using transpilers --- fetch-npm-browserify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-npm-browserify.js b/fetch-npm-browserify.js index d3e7d59..7f16e23 100644 --- a/fetch-npm-browserify.js +++ b/fetch-npm-browserify.js @@ -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);