Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Nov 21, 2024
1 parent 6ed660d commit 4de8840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
const parseURL = url => {
try {
// use location.origin as the base to handle cases where the url is a relative path
const { pathname, search, hash } = new URL(url, location.origin);
const { pathname, search, hash } = new URL(url, origin);
url = pathname + search + hash;
} catch (e) {
/* empty */
Expand Down

0 comments on commit 4de8840

Please sign in to comment.