From 237d98504643f2080475d8800b82daafece7c160 Mon Sep 17 00:00:00 2001 From: hannahhoward Date: Sun, 25 Feb 2024 10:44:41 -0800 Subject: [PATCH] fix(client): add null check fixes thrown exception witnessed in browser client --- src/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.js b/src/client.js index 43e6c10..fd787eb 100644 --- a/src/client.js +++ b/src/client.js @@ -518,7 +518,7 @@ export class Saturn { // It's a good enough heuristic. const entry = performance .getEntriesByType('resource') - .find((r) => r.name === log.url.href) + .find((r) => r.name === log.url?.href) if (entry) { const dnsStart = entry.domainLookupStart