Commit 71382ae7 by Marcus Efraimsson Committed by Torkel Ödegaard

phantomjs: performance.getEntriesByType not supported (#21009)

parent 16f0e754
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment