mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Merge pull request #2971 from yArna/master
fix tracker localStorage DOMException in data URLs
This commit is contained in:
commit
7de52d61e9
@ -3,10 +3,10 @@
|
|||||||
screen: { width, height },
|
screen: { width, height },
|
||||||
navigator: { language },
|
navigator: { language },
|
||||||
location,
|
location,
|
||||||
localStorage,
|
|
||||||
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;
|
||||||
|
|
||||||
@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
const getPayload = () => ({
|
const getPayload = () => ({
|
||||||
website,
|
website,
|
||||||
hostname,
|
hostname || 'none',
|
||||||
screen,
|
screen,
|
||||||
language,
|
language,
|
||||||
title: encode(title),
|
title: encode(title),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user