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.

fix 'none' as hostname when 'data:' URLs

yArnad4da5aef0038
diff --git a/src/tracker/index.js b/src/tracker/index.js
index 707594cf4..d4446560a 100644
--- a/src/tracker/index.js
+++ b/src/tracker/index.js
@@ -63,7 +63,7 @@
const getPayload = () => ({
website,
- hostname,
+ hostname || 'none',
screen,
language,
title: encode(title),