You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

7 lines
233 B

  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);