From f3de119dbfc489d97af2fed31fb52a53faddbd42 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Thu, 26 Sep 2024 16:05:40 +0800 Subject: [PATCH] update --- src/performance/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/performance/index.ts b/src/performance/index.ts index 153db63..93385fb 100644 --- a/src/performance/index.ts +++ b/src/performance/index.ts @@ -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;