fix tracker localStorage DOMException in data URLs

This commit is contained in:
yArna authored and GitHub committed 2024-09-18 18:17:15 +08:00
1 parent d4da5aef00
commit be656f0b63
1 file changed
+1 -1
+1 -1
View File
@@ -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;