From 3ac3c2ab6885689b6689c6f2974ae7c256be9faf Mon Sep 17 00:00:00 2001 From: soulgalore Date: Wed, 28 Apr 2021 10:15:54 +0200 Subject: [PATCH] Safer connectivity get --- lib/plugins/html/htmlBuilder.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/plugins/html/htmlBuilder.js b/lib/plugins/html/htmlBuilder.js index 378458a67..d770e5e4a 100644 --- a/lib/plugins/html/htmlBuilder.js +++ b/lib/plugins/html/htmlBuilder.js @@ -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