mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 02:55:38 +01:00
fix tracker localStorage DOMException in data URLs
This commit is contained in:
parent
d4da5aef00
commit
be656f0b63
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue