3 ms·
it doesn't work in an incognito window (first thing I tried) but does in a regular window. @joshcsimmons it seems like sqword is reading local storage on this
by gregsadetsky 3y ago
it doesn't work in an incognito window (first thing I tried) but does in a regular window.
@joshcsimmons it seems like sqword is reading local storage on this line:
this.localStorage = n.localStorage || globalThis.localStorage,
which leads to the following error: "Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document."
you should do it in a try/catch.
- Dylan16807 3y agoI'll note that this is a side effect of incognito blocking third party cookies, and I wouldn't bother changing it for that purpose. But I guess it can happen on the original site if the user turns off cookies entirely.