Fixed tracker.

This commit is contained in:
Mike Cao committed 2024-10-09 12:39:45 -07:00
1 parent 7de52d61e9
commit 801200c0bf
1 file changed
+2 -2
+2 -2
View File
@@ -6,9 +6,9 @@
document, document,
history, history,
} = window; } = window;
const localStorage = location.href.startsWith('data:') ? undefined : window.localStorage
const { hostname, href } = location; const { hostname, href } = location;
const { currentScript, referrer } = document; const { currentScript, referrer } = document;
const localStorage = href.startsWith('data:') ? undefined : window.localStorage;
if (!currentScript) return; if (!currentScript) return;
@@ -63,7 +63,7 @@
const getPayload = () => ({ const getPayload = () => ({
website, website,
hostname || 'none', hostname,
screen, screen,
language, language,
title: encode(title), title: encode(title),