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 },
|
||||
navigator: { language },
|
||||
location,
|
||||
localStorage,
|
||||
document,
|
||||
history,
|
||||
} = window;
|
||||
const localStorage = location.href.startsWith('data:') ? undefined : window.localStorage
|
||||
const { hostname, href } = location;
|
||||
const { currentScript, referrer } = document;
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
|
||||
const getPayload = () => ({
|
||||
website,
|
||||
hostname,
|
||||
hostname || 'none',
|
||||
screen,
|
||||
language,
|
||||
title: encode(title),
|
||||
|
Loading…
x
Reference in New Issue
Block a user