Skip to content

Commit

Permalink
fix: fetch called on non Window object (#65)
Browse files Browse the repository at this point in the history
```
TypeError: 'fetch' called on an object that does not implement interface Window.
```
  • Loading branch information
Alan Shaw authored Jul 19, 2023
1 parent c88170b commit 2af758f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/fetch/src/lib.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@


// On the web we just export native fetch implementation
export { ReadableStream, Blob, FormData } from './package.js';
export const { Headers, Request, Response } = globalThis;
export default globalThis.fetch

export default globalThis.fetch.bind(globalThis)

0 comments on commit 2af758f

Please sign in to comment.