fix(tracker): remove useless type casting

This commit is contained in:
nick-delirium 2023-05-26 16:26:49 +02:00
parent 615f8a0c8b
commit a7511ba943
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "7.0.2-beta.1",
"version": "7.0.2",
"keywords": [
"logging",
"replay"

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 = xhr.getAllResponseHeaders() || '' // might be null (only if no response received though)
const headersArr = hString.trim().split(/[\r\n]+/)
const headerMap: Record<string, string> = {}
headersArr.forEach(function (line) {