mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 12:11:09 -06:00
phantomjs: performance.getEntriesByType not supported (#21009)
This commit is contained in:
parent
16f0e75448
commit
71382ae7ed
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user