Skip to content

Commit

Permalink
fix: 修复cls多次重复上报
Browse files Browse the repository at this point in the history
  • Loading branch information
Chryseis committed Jan 11, 2022
1 parent add1d69 commit f82f44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-performance/src/metrics/getCLS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ export const initCLS = (store: metricsStore, report: IReportHandler, immediately
store.set(metricsName.CLS, metrics)
}

onHidden(stopListening)
onHidden(stopListening, true)
}

0 comments on commit f82f44e

Please sign in to comment.