Skip to content

Commit

Permalink
fix nodeCompat: no global fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
lideming committed Jan 16, 2024
1 parent 2647a97 commit cec04c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/HttpApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class ClientDocSet {
}
}

const defaultFetch = fetch;
const defaultFetch = globalThis.fetch;

export class HttpClient {
constructor(readonly options: HttpClientOptions) {}
Expand Down

0 comments on commit cec04c0

Please sign in to comment.