From 615f8a0c8b6ea2e869b5cd68d499468ee1981670 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 26 May 2023 16:25:13 +0200 Subject: [PATCH] fix(tracker): fix typo --- tracker/tracker/src/main/modules/network.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracker/tracker/src/main/modules/network.ts b/tracker/tracker/src/main/modules/network.ts index 9827db1e3..68cb1245a 100644 --- a/tracker/tracker/src/main/modules/network.ts +++ b/tracker/tracker/src/main/modules/network.ts @@ -259,7 +259,7 @@ export default function (app: App, opts: Partial = {}) { const { headers: reqHs, body: reqBody } = getXHRRequestDataObject(xhr) const duration = startTime > 0 ? e.timeStamp - startTime : 0 - const hString: string | null = xhr.getAllResponseHeaders() // might be null (though only if no response received though) + const hString: string | null = xhr.getAllResponseHeaders() || '' // might be null (though only if no response received though) const headersArr = hString.trim().split(/[\r\n]+/) const headerMap: Record = {} headersArr.forEach(function (line) {