aboutsummaryrefslogtreecommitdiff
path: root/src/reportWebVitals.js
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2020-11-13 20:35:58 -0500
committerGalen Guyer <galen@galenguyer.com>2020-11-13 20:35:58 -0500
commit2a844fc6834c3fd512de78da4a8d1c20b41b384a (patch)
tree6a7c77666a9b7413c5a61f0d483824633808000c /src/reportWebVitals.js
parenta0746693e981b5cf2288f467913745b56f2be468 (diff)
Add prettier
Diffstat (limited to 'src/reportWebVitals.js')
-rw-r--r--src/reportWebVitals.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/reportWebVitals.js b/src/reportWebVitals.js
index 5253d3a..7dc6b90 100644
--- a/src/reportWebVitals.js
+++ b/src/reportWebVitals.js
@@ -1,13 +1,13 @@
-const reportWebVitals = onPerfEntry => {
- if (onPerfEntry && onPerfEntry instanceof Function) {
- import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
- getCLS(onPerfEntry);
- getFID(onPerfEntry);
- getFCP(onPerfEntry);
- getLCP(onPerfEntry);
- getTTFB(onPerfEntry);
- });
- }
+const reportWebVitals = (onPerfEntry) => {
+ 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;