Skip to content
Permalink
Browse files

Extra guard for missing CPU data (#2312)

This will not fix the original problem but at least make sure
we don't fail. #2310
  • Loading branch information...
soulgalore committed Feb 13, 2019
1 parent 20e1020 commit 427d28f7119327cdbc06bc51700d2b8488e472f8
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/plugins/html/templates/url/metrics/cpu.pug
@@ -3,7 +3,7 @@ h3 Time spent

.row
.one-half.column
if browsertime.cpu.categories
if browsertime.cpu && browsertime.cpu.categories
table
tr
th(colspan='2') Categories (ms)
@@ -12,7 +12,7 @@ h3 Time spent
td #{name}
td #{value.toFixed(1)}
.one-half.column
if browsertime.cpu.events
if browsertime.cpu && browsertime.cpu.events
table
tr
th(colspan='2') Events (ms)

0 comments on commit 427d28f

Please sign in to comment.
You can’t perform that action at this time.