Skip to content

Commit

Permalink
fix(int-1125): change fetch constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarCardoso committed Dec 14, 2023
1 parent 5aa7c72 commit e535b88
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 = (...args: Parameters<typeof fetch>) => ($c.fetch ? $c.fetch(...args) : fetch(...args))
this.fetch = $c.fetch ?? typeof window !== 'undefined' ? window.fetch : fetch
this.ejectInterceptor = false
this.url = ''
this.parameters = {} as ISbStoriesParams
Expand Down

0 comments on commit e535b88

Please sign in to comment.