-
-
Save chungchi300/fcf91508e444e24203d490a658ec8f47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // the whatwg-fetch polyfill installs the fetch() function | |
| // on the global object (window or self) | |
| // | |
| // Return that as the export for use in Webpack, Browserify etc. | |
| require('whatwg-fetch'); | |
| var globalObject = typeof self === "undefined" ? global : self; | |
| module.exports = globalObject.fetch.bind(globalObject); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // the whatwg-fetch polyfill installs the fetch() function | |
| // on the global object (window or self) | |
| // | |
| // Return that as the export for use in Webpack, Browserify etc. | |
| require('whatwg-fetch'); | |
| var globalObject = typeof self === "undefined" ? global : self; | |
| module.exports = globalObject.fetch.bind(globalObject); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment