From 71382ae7edf4391969e8bb8ec710f88fdbe6d9d8 Mon Sep 17 00:00:00 2001 From: Marcus Efraimsson Date: Mon, 16 Dec 2019 09:40:12 +0100 Subject: [PATCH] phantomjs: performance.getEntriesByType not supported (#21009) --- public/app/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/app.ts b/public/app/app.ts index dbb31244744..12333bc829a 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -175,7 +175,7 @@ export class GrafanaApp { ttiPolyfill.getFirstConsistentlyInteractive().then((tti: any) => { // Collecting paint metrics first - const paintMetrics = performance.getEntriesByType('paint'); + const paintMetrics = performance && performance.getEntriesByType ? performance.getEntriesByType('paint') : []; for (const metric of paintMetrics) { reportPerformance(metric.name, Math.round(metric.startTime + metric.duration));