mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Fix vitals.html data parsing for file reports
This commit is contained in:
@@ -123,7 +123,8 @@
|
|||||||
|
|
||||||
function renderVitals(data) {
|
function renderVitals(data) {
|
||||||
document.getElementById('loading').style.display = 'none';
|
document.getElementById('loading').style.display = 'none';
|
||||||
const details = data.metrics.details || {}; // This comes from my runner.js update
|
// Check both root details (file format) and metrics.details (DB format)
|
||||||
|
const details = data.details || (data.metrics && data.metrics.details) || {};
|
||||||
|
|
||||||
// LCP
|
// LCP
|
||||||
const lcpSec = document.getElementById('lcp-section');
|
const lcpSec = document.getElementById('lcp-section');
|
||||||
|
|||||||
Reference in New Issue
Block a user