newsmap-js icon indicating copy to clipboard operation
newsmap-js copied to clipboard

localStorage unavailable if user disables cookies

Open miiichael opened this issue 3 years ago • 2 comments

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36

Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

Cookies disabled by default can't be that uncommon? :thinking:

miiichael avatar Feb 18 '21 12:02 miiichael

Haha thank you. I think it probably is very uncommon.

At least, you're the first person to create an issue for it on GitHub though. And thanks for looking into the probable cause of this issue.

I guess I should check before assuming localStorage is available. (I make that assumption on a lot of projects!)

IJMacD avatar Feb 18 '21 13:02 IJMacD

As someone who routinely browses with cookies disabled, I can assure you that you are far from being the only one to make that same assumption (sadly). 😅

miiichael avatar Feb 18 '21 14:02 miiichael