mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 11:55:59 +00:00
Fix vitals.html data parsing for file reports
This commit is contained in:
@@ -123,7 +123,8 @@
|
||||
|
||||
function renderVitals(data) {
|
||||
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
|
||||
const lcpSec = document.getElementById('lcp-section');
|
||||
|
||||
Reference in New Issue
Block a user