Skip to content

Commit

Permalink
Merge branch 'dev' into analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Nov 21, 2024
2 parents 8651fe3 + 9c2bfe8 commit e60acbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/update-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
const endPoint = process.env.COLLECT_API_ENDPOINT;

if (endPoint) {
const file = path.resolve(__dirname, '../public/tracker.js');
const file = path.resolve(__dirname, '../public/script.js');

const tracker = fs.readFileSync(file);

Expand Down
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 e60acbe

Please sign in to comment.