Skip to content

Commit 70f592d

Browse files
authoredJan 30, 2023
fix: "global is not defined" (#1704)
1 parent 0f1ebb0 commit 70f592d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = exports = globalObject.fetch;
1717

1818
// Needed for TypeScript and Webpack.
1919
if (globalObject.fetch) {
20-
exports.default = globalObject.fetch.bind(global);
20+
exports.default = globalObject.fetch.bind(globalObject);
2121
}
2222

2323
exports.Headers = globalObject.Headers;

0 commit comments

Comments
 (0)
Please sign in to comment.