mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Fixed tracker.
This commit is contained in:
parent
7de52d61e9
commit
801200c0bf
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user