Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Fine0830 committed Sep 26, 2024
1 parent cbc8ff9 commit f3de119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/performance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const handler = {
};
const isCoreWebVitals = target.useCoreWebVitals && !isNaN(Number(target.lcpTime)) && !isNaN(Number(target.clsTime));
const isFmp = !isNaN(Number(target.fmpTime)) && target.useFmp;
if ((!target.useFmp && isCoreWebVitals) || (!target.useCoreWebVitals && isFmp) || (isCoreWebVitals && isFmp)) {
// todo (!target.useFmp && isCoreWebVitals) || (!target.useCoreWebVitals && isFmp) || (isCoreWebVitals && isFmp)
if (isCoreWebVitals && isFmp) {
new TracePerf().reportPerf(source, String(target.collector));
}
return true;
Expand Down

0 comments on commit f3de119

Please sign in to comment.