We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c89725d commit e8d84ecCopy full SHA for e8d84ec
plugins/optimization-detective/detect.js
@@ -789,7 +789,7 @@ export default async function detect( {
789
elements: [],
790
};
791
792
- const lcpMetric = lcpMetricCandidates.at( -1 );
+ const lcpMetric = lcpMetricCandidates[ lcpMetricCandidates.length - 1 ];
793
794
// Populate the elements in the URL Metric.
795
for ( const elementIntersection of elementIntersections ) {
0 commit comments