fix(tracker): remove useless type casting
This commit is contained in:
parent
615f8a0c8b
commit
a7511ba943
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue