Skip to content

Commit

Permalink
fix: fix reading property from null
Browse files Browse the repository at this point in the history
  • Loading branch information
i7guokui committed Oct 17, 2023
1 parent 782fe06 commit 0160a55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/performance/fmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ class FMPTiming {
let url: string = '';
if (match && match[1]) {
url = match[1];
}
if (!url.includes('http')) {
url = location.protocol + match[1];
if (!url.includes('http')) {
url = location.protocol + match[1];
}
}
time = this.entries[url];
}
Expand Down

0 comments on commit 0160a55

Please sign in to comment.