fetch-npm-browserify.js 233 B

123456
  1. // the whatwg-fetch polyfill installs the fetch() function
  2. // on the global object (window or self)
  3. //
  4. // Return that as the export for use in Webpack, Browserify etc.
  5. require('whatwg-fetch');
  6. module.exports = self.fetch.bind(self);