Skip to content

Commit a88c045

Browse files
committed
Clean up
1 parent 469fea2 commit a88c045

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dist/performance.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ async function getSpeculationRules() {
366366
const body = await response.text();
367367
httpRules.push({url: speculationRuleLocation, rule: JSON.parse(body)});
368368
} catch(error) {
369-
httpRules.push({errorName: error.name, errorMessage: error.message});
369+
httpRules.push({url: speculationRuleLocation, errorName: error.name, errorMessage: error.message});
370370
}
371371
}));
372372
}
@@ -375,7 +375,7 @@ async function getSpeculationRules() {
375375
return {htmlRules: htmlRules, httpHeaderRules: httpRules};
376376
}
377377

378-
return Promise.all([getLcpElement(), getSpeculationRules()]).then(([lcp_elem_stats, speculation_rules]) => {
378+
return Promise.all([getLcpElement(), getSpeculationRules()]).then(([lcp_elem_stats, speculationRules]) => {
379379
const lcpUrl = lcp_elem_stats.url;
380380
const rawDoc = getRawHtmlDocument();
381381
// Start out with true, only if LCP element is an external resource will we eval & potentially set to false.
@@ -407,7 +407,7 @@ return Promise.all([getLcpElement(), getSpeculationRules()]).then(([lcp_elem_sta
407407
lcp_preload: lcpPreload,
408408
web_vitals_js: getWebVitalsJS(),
409409
gaming_metrics: gamingMetrics,
410-
speculation_rules: speculation_rules,
410+
speculation_rules: speculationRules,
411411
};
412412
}).catch(error => {
413413
return {errorName: error.name, errorMessage: error.message};

0 commit comments

Comments
 (0)