Skip to content

Commit a02cabe

Browse files
committed
update getMeasurements to handle null entry values
1 parent a1bda9d commit a02cabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiny-tic-toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function downloadCsvFile(data) {
161161

162162
function getMeasurements() {
163163
return performance.getEntries()
164-
.filter(entry => entry.entryType === 'measure')
164+
.filter(entry => entry && entry.entryType === 'measure')
165165
.map(entry => ({
166166
name: entry.name,
167167
duration: entry.duration,

0 commit comments

Comments
 (0)