Skip to content

Commit

Permalink
Fixed unit test failures when fetch is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jun 9, 2021
1 parent 12ded8e commit c72f6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/submission/DefaultSubmissionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class DefaultSubmissionClient implements ISubmissionClient {
protected readonly ConfigurationVersionHeader: string =
"x-exceptionless-configversion";

public constructor(protected config: Configuration, private fetch = globalThis.fetch.bind(globalThis)) { }
public constructor(protected config: Configuration, private fetch = globalThis.fetch?.bind(globalThis)) { }

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

0 comments on commit c72f6a8

Please sign in to comment.