File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -630,15 +630,15 @@ function stripUtmParams(url) {
630630 }
631631
632632 // remove utm from normal url parameters
633- let parsedURL = new URL ( url )
633+ let parsedURL = new URL ( url ) ;
634634 for ( let param of [ ...parsedURL . searchParams . keys ( ) ] ) {
635635 if ( param . startsWith ( UTM_PREFIX ) ) {
636636 parsedURL . searchParams . delete ( param ) ;
637637 }
638638 }
639639
640640 // remove utm from parameters after the hash in the url
641- let parsedFragment = new URLSearchParams ( parsedURL . hash . substring ( 1 ) )
641+ let parsedFragment = new URLSearchParams ( parsedURL . hash . substring ( 1 ) ) ;
642642 for ( let param of [ ...parsedFragment . keys ( ) ] ) {
643643 if ( param . startsWith ( UTM_PREFIX ) ) {
644644 parsedFragment . delete ( param ) ;
@@ -647,7 +647,7 @@ function stripUtmParams(url) {
647647 parsedURL . hash = parsedFragment . toString ( ) ;
648648
649649 // if the url has changed, return it. Otherwise return null.
650- if ( parsedUrl != url ) {
650+ if ( parsedURL != url ) {
651651 return parsedURL . toString ( ) ;
652652 }
653653}
You can’t perform that action at this time.
0 commit comments