Skip to content

Commit 41cbbca

Browse files
committed
Fixed browser submission error: Failed to execute 'fetch' on 'Window': Illegal invocation
1 parent 7702b45 commit 41cbbca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/submission/DefaultSubmissionClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class DefaultSubmissionClient implements ISubmissionClient {
1313
protected readonly ConfigurationVersionHeader: string =
1414
"x-exceptionless-configversion";
1515

16-
public constructor(protected config: Configuration, private fetch = globalThis.fetch) { }
16+
public constructor(protected config: Configuration, private fetch = globalThis.fetch.bind(globalThis)) { }
1717

1818
public getSettings(version: number): Promise<Response<ServerSettings>> {
1919
const url = `${this.config.serverUrl}/api/v2/projects/config?v=${version}`;

0 commit comments

Comments
 (0)