Skip to content

Commit

Permalink
Catch missing meta field
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Aug 31, 2023
1 parent 8f5253a commit a54afe9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/sitespeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ module.exports = {
const harPage = har.log.pages[i];
const pageXrayPage = pages[i];
if (pageXrayPage) {
for (let name of Object.keys(harPage._meta)) {
pageXrayPage.meta[name] = harPage._meta[name];
if (harPage._meta) {
for (let name of Object.keys(harPage._meta)) {
pageXrayPage.meta[name] = harPage._meta[name];
}
}
pageXrayPage.visualMetrics = harPage._visualMetrics;
pageXrayPage.meta.title = harPage.title;
Expand Down

0 comments on commit a54afe9

Please sign in to comment.