Loading fetch polyfill into global

This commit is contained in:
Antoine Gersant 2017-07-04 03:25:21 -07:00
parent 2091286953
commit 53edb24a63

View file

@ -1,7 +1,7 @@
module.exports = { module.exports = {
before : function(cb) { before : function(cb) {
console.log("Requiring fetch polyfill"); console.log("Requiring fetch polyfill");
require('whatwg-fetch'); fetch = require('whatwg-fetch').fetch;
cb(); cb();
} }
}; };