Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bcyphers committed Sep 7, 2018
1 parent 5a04219 commit 726e16a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/webrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,15 +630,15 @@ function stripUtmParams(url) {
}

// remove utm from normal url parameters
let parsedURL = new URL(url)
let parsedURL = new URL(url);
for (let param of [...parsedURL.searchParams.keys()]) {
if (param.startsWith(UTM_PREFIX)) {
parsedURL.searchParams.delete(param);
}
}

// remove utm from parameters after the hash in the url
let parsedFragment = new URLSearchParams(parsedURL.hash.substring(1))
let parsedFragment = new URLSearchParams(parsedURL.hash.substring(1));
for (let param of [...parsedFragment.keys()]) {
if (param.startsWith(UTM_PREFIX)) {
parsedFragment.delete(param);
Expand All @@ -647,7 +647,7 @@ function stripUtmParams(url) {
parsedURL.hash = parsedFragment.toString();

// if the url has changed, return it. Otherwise return null.
if (parsedUrl != url) {
if (parsedURL != url) {
return parsedURL.toString();
}
}
Expand Down

0 comments on commit 726e16a

Please sign in to comment.