diff options
author | Vidhu Kant Sharma <araararagikoyomi@protonmail.com> | 2021-07-25 01:13:24 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-25 01:13:24 +0530 |
commit | 6b58ffac163b9b3637bfab1294069c55b6d5702c (patch) | |
tree | 95f270639f3a2fc6aa936961d9787a59a63b079e /src/reportWebVitals.ts | |
parent | 166f8d4262729b2f771c30f8e71a305052cc13d5 (diff) | |
parent | b353dda4df7fc7be973e52a2f529360e7bfc8fed (diff) |
Merge pull request #1 from MikunoNaka/multiplayer
Merge multiplayer into master
Diffstat (limited to 'src/reportWebVitals.ts')
-rw-r--r-- | src/reportWebVitals.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/reportWebVitals.ts b/src/reportWebVitals.ts deleted file mode 100644 index 49a2a16..0000000 --- a/src/reportWebVitals.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ReportHandler } from 'web-vitals'; - -const reportWebVitals = (onPerfEntry?: ReportHandler) => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals; |