Safer connectivity get

This commit is contained in:
soulgalore 2021-04-28 10:15:54 +02:00
parent b04d82411e
commit 3ac3c2ab68
1 changed files with 4 additions and 1 deletions

View File

@ -223,7 +223,10 @@ class HTMLBuilder {
);
android = get(pageInfo, 'data.browsertime.pageSummary.info.android');
ios = get(pageInfo, 'data.browsertime.pageSummary.info.ios');
connectivity = pageInfo.data.browsertime.pageSummary.info.connectivity;
connectivity = get(
pageInfo,
'data.browsertime.pageSummary.info.connectivity'
);
// if we are on the summary page we inline the HAR and then make sure
// we only pick one HAR run (medianRun). But you can also choose to