We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 767fda2 + 8cc571f commit 17d24bfCopy full SHA for 17d24bf
src/tracker/index.js
@@ -12,7 +12,13 @@
12
if (!currentScript) return;
13
14
const { hostname, href, origin } = location;
15
- const localStorage = href.startsWith('data:') ? undefined : window.localStorage;
+
16
+ let localStorage;
17
+ try {
18
+ localStorage = href.startsWith('data:') ? undefined : window.localStorage;
19
+ } catch {
20
+ /* (DOMException) SecurityError: Access is denied for this document. */
21
+ }
22
23
const _data = 'data-';
24
const _false = 'false';
0 commit comments