Unverified Commit dd338da7 authored by Michaël De Boey's avatar Michaël De Boey
Browse files

Update reportWebVitals.ts

1 merge request!10377Remove onPerfEntry is a Function check
Showing with 1 addition and 1 deletion
+1 -1
import { ReportHandler } from 'web-vitals';
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
if (onPerfEntry && onPerfEntry instanceof Function) {
if (onPerfEntry) {
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
getCLS(onPerfEntry);
getFID(onPerfEntry);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment