fix(tracker): fix typo

This commit is contained in:
nick-delirium 2023-05-26 16:25:13 +02:00
parent 3ad78f9ffe
commit 615f8a0c8b

View file

@ -259,7 +259,7 @@ export default function (app: App, opts: Partial<Options> = {}) {
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<string, string> = {}
headersArr.forEach(function (line) {