Skip to content

Commit

Permalink
👌 different form
Browse files Browse the repository at this point in the history
Co-authored-by: Benoît Zugmeyer <benoit.zugmeyer@datadoghq.com>
  • Loading branch information
bcaudan and BenoitZugmeyer authored Nov 24, 2020
1 parent 57d57db commit 092dbb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function matchRequestTiming(request: RequestCompleteEvent) {
}
const sameNameEntries = performance.getEntriesByName(request.url, 'resource')

if (!(sameNameEntries.length > 0 && 'toJSON' in sameNameEntries[0])) {
if (!sameNameEntries.length || !('toJSON' in sameNameEntries[0])) {
return
}

Expand Down

0 comments on commit 092dbb7

Please sign in to comment.