Skip to content

Commit cbaa843

Browse files
authored
Merge pull request #245 from tunetheweb/patch-1
Correct `switch` statement
2 parents ba47392 + 29a5c28 commit cbaa843

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,13 @@ function sendToGoogleAnalytics({name, delta, value, id, attribution}) {
460460
switch (name) {
461461
case 'CLS':
462462
eventParams.debug_target = attribution.largestShiftTarget;
463+
break;
463464
case 'FID':
464465
eventParams.debug_target = attribution.eventTarget;
466+
break;
465467
case 'LCP':
466468
eventParams.debug_target = attribution.element;
469+
break;
467470
}
468471

469472
// Assumes the global `gtag()` function exists, see:

0 commit comments

Comments
 (0)