Skip to content

Commit

Permalink
feat(int-1125): back with old code for fetch constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarCardoso committed Dec 14, 2023
1 parent 9b17bb7 commit 15db1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sbFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SbFetch {
this.headers = $c.headers || new Headers()
this.timeout = $c?.timeout ? $c.timeout * 1000 : 0
this.responseInterceptor = $c.responseInterceptor
this.fetch = fetch
this.fetch = (...args) => ($c.fetch ? $c.fetch(...args) : fetch(...args))

Check failure on line 33 in src/sbFetch.ts

View workflow job for this annotation

GitHub Actions / test

No overload matches this call.

Check failure on line 33 in src/sbFetch.ts

View workflow job for this annotation

GitHub Actions / test

No overload matches this call.
this.ejectInterceptor = false
this.url = ''
this.parameters = {} as ISbStoriesParams
Expand Down

0 comments on commit 15db1b8

Please sign in to comment.