Bind fetch to window in the browser (#434)
This commit is contained in:
parent
a1cbcb5706
commit
d522036bee
|
@ -1,7 +1,7 @@
|
|||
module.exports = exports = window.fetch;
|
||||
|
||||
// Needed for TypeScript.
|
||||
exports.default = window.fetch;
|
||||
// Needed for TypeScript and Webpack.
|
||||
exports.default = window.fetch.bind(window);
|
||||
|
||||
exports.Headers = window.Headers;
|
||||
exports.Request = window.Request;
|
||||
|
|
Loading…
Reference in New Issue