tracker: fix timing status check
This commit is contained in:
parent
e92ba42d82
commit
526dfd7e21
1 changed files with 5 additions and 3 deletions
|
|
@ -121,9 +121,11 @@ export default function (app: App, opts: Partial<Options>): void {
|
|||
if (shouldSkip) {
|
||||
return
|
||||
}
|
||||
const failed = entry.responseEnd === 0
|
||||
const failed = entry.initiatorType !== 'fetch'
|
||||
? entry.responseEnd === 0
|
||||
|| (entry.transferSize === 0 && entry.decodedBodySize === 0)
|
||||
|| (entry.responseStatus && entry.responseStatus >= 400)
|
||||
: entry.responseStatus && entry.responseStatus >= 400
|
||||
|
||||
const timings = {
|
||||
queueing: entry.domainLookupStart - entry.startTime,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue