Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Code cleanup.

Mike Cao4de884010a5b
diff --git a/src/tracker/index.js b/src/tracker/index.js
index e0c036894..c17a76e8d 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -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 */