Skip to content

Commit 2af758f

Browse files
author
Alan Shaw
authored
fix: fetch called on non Window object (#65)
``` TypeError: 'fetch' called on an object that does not implement interface Window. ```
1 parent c88170b commit 2af758f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/fetch/src/lib.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
31
// On the web we just export native fetch implementation
42
export { ReadableStream, Blob, FormData } from './package.js';
53
export const { Headers, Request, Response } = globalThis;
6-
export default globalThis.fetch
7-
4+
export default globalThis.fetch.bind(globalThis)

0 commit comments

Comments
 (0)