From c72f6a83cbda8858b640f7358e25949eaf3178c2 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Wed, 9 Jun 2021 07:01:34 -0500 Subject: [PATCH] Fixed unit test failures when fetch is undefined --- packages/core/src/submission/DefaultSubmissionClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/submission/DefaultSubmissionClient.ts b/packages/core/src/submission/DefaultSubmissionClient.ts index 80295804..2675d07f 100644 --- a/packages/core/src/submission/DefaultSubmissionClient.ts +++ b/packages/core/src/submission/DefaultSubmissionClient.ts @@ -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> { const url = `${this.config.serverUrl}/api/v2/projects/config?v=${version}`;