Skip to content

Commit

Permalink
meta isn't always used for Browsrtime
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed Dec 17, 2018
1 parent bb00b22 commit e06ba2e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/sitespeed.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ module.exports = {
for (let i = 0; i < har.log.pages.length; i++) {
const harPage = har.log.pages[i];
const pageXrayPage = pages[i];
pageXrayPage.meta.connectivity = harPage._meta.connectivity;
pageXrayPage.meta.screenshot = harPage._meta.screenshot;
pageXrayPage.meta.video = harPage._meta.video;
pageXrayPage.meta.result = harPage._meta.result;
if (harPage._meta) {
pageXrayPage.meta.connectivity = harPage._meta.connectivity;
pageXrayPage.meta.screenshot = harPage._meta.screenshot;
pageXrayPage.meta.video = harPage._meta.video;
pageXrayPage.meta.result = harPage._meta.result;
}
pageXrayPage.visualMetrics = harPage._visualMetrics;
pageXrayPage.meta.title = harPage.title;

Expand Down

0 comments on commit e06ba2e

Please sign in to comment.