We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca7a60 commit 18a96beCopy full SHA for 18a96be
src/infrastructure/RepositoryFactoryHttp.ts
@@ -69,7 +69,7 @@ export class RepositoryFactoryHttp implements RepositoryFactory {
69
*/
70
constructor(url: string, configs?: RepositoryFactoryConfig) {
71
this.url = url;
72
- this.fetchApi = configs?.fetchApi || (typeof window !== 'undefined' && window.fetch) || fetch;
+ this.fetchApi = configs?.fetchApi || (typeof window !== 'undefined' && window.fetch.bind(window)) || fetch;
73
this.networkType = configs?.networkType
74
? observableOf(configs.networkType)
75
: this.createNetworkRepository().getNetworkType().pipe(shareReplay(1));
0 commit comments