Skip to content

Commit 646ea52

Browse files
authored
Fix PWA custom metric (#163)
1 parent 3f73319 commit 646ea52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/pwa.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const manifestURLs = new Set(Array.from(document.querySelectorAll('link[rel=mani
2424

2525
const initiatorMap = requests.reduce((map, request) => {
2626
const url = request.url;
27-
let initiator = request.initiator.url;
27+
let initiator = request.initiator?.url;
2828
if (!initiator) {
2929
initiator = request.initiator?.stack?.callFrames?.[0]?.url
3030
}

0 commit comments

Comments
 (0)