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;
|
module.exports = exports = window.fetch;
|
||||||
|
|
||||||
// Needed for TypeScript.
|
// Needed for TypeScript and Webpack.
|
||||||
exports.default = window.fetch;
|
exports.default = window.fetch.bind(window);
|
||||||
|
|
||||||
exports.Headers = window.Headers;
|
exports.Headers = window.Headers;
|
||||||
exports.Request = window.Request;
|
exports.Request = window.Request;
|
||||||
|
|
Loading…
Reference in New Issue