ui: fixing resource success when mapped from timing messages
This commit is contained in:
parent
5180ad8717
commit
27e94fed35
1 changed files with 2 additions and 1 deletions
|
|
@ -115,7 +115,8 @@ export const Resource = (resource: IResource) => ({
|
|||
|
||||
|
||||
export function getResourceFromResourceTiming(msg: ResourceTiming, sessStart: number) {
|
||||
const success = msg.duration > 0 // might be duration=0 when cached
|
||||
// duration might be duration=0 when cached
|
||||
const success = msg.duration > 0 || msg.encodedBodySize > 0 || msg.transferredSize > 0
|
||||
const type = getResourceType(msg.initiator, msg.url)
|
||||
return Resource({
|
||||
...msg,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue