Skip to content

Commit 33a56c1

Browse files
ianschmitzyoyota
authored andcommitted
Bump version of Verdaccio (facebook#7787)
1 parent 05f7014 commit 33a56c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docusaurus/docs/measuring-performance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ reportWebVitals(sendToAnalytics);
4949
> **Note:** If you use Google Analytics, use the `id` value to make it easier to construct metric distributions manually (to calculate percentiles, etc…).
5050
>
5151
> ```js
52-
> function sendToAnalytics({id, name, value}) {
52+
> function sendToAnalytics({ id, name, value }) {
5353
> ga('send', 'event', {
5454
> eventCategory: 'Web Vitals',
5555
> eventAction: name,
@@ -58,7 +58,7 @@ reportWebVitals(sendToAnalytics);
5858
> nonInteraction: true, // avoids affecting bounce rate
5959
> });
6060
> }
61-
>
61+
>
6262
> reportWebVitals(sendToAnalytics);
6363
> ```
6464
>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
const reportWebVitals = (onPerfEntry) => {
1+
const reportWebVitals = onPerfEntry => {
22
if (onPerfEntry && onPerfEntry instanceof Function) {
33
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4-
getCLS(onPerfEntry);
4+
getCLS(onPerfEntry);
55
getFID(onPerfEntry);
66
getFCP(onPerfEntry);
77
getLCP(onPerfEntry);
88
getTTFB(onPerfEntry);
99
});
1010
}
11-
}
11+
};
1212

1313
export default reportWebVitals;

0 commit comments

Comments
 (0)