Skip to content

Commit 3b7048b

Browse files
authored
fix: Handle missing fetch implementation (replicate#42)
1 parent a385f38 commit 3b7048b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Replicate {
3737
this.userAgent =
3838
options.userAgent || `replicate-javascript/${packageJSON.version}`;
3939
this.baseUrl = options.baseUrl || 'https://api.replicate.com/v1';
40-
this.fetch = fetch;
40+
this.fetch = options.fetch || fetch;
4141

4242
this.collections = {
4343
get: collections.get.bind(this),

0 commit comments

Comments
 (0)