IJMacD / newsmap-js

NewsMap JS - JS implementation of the defunct newsmap.jp
http://newsmap.ijmacd.com/
101 stars 37 forks source link

localStorage unavailable if user disables cookies #18

Open miiichael opened 3 years ago

miiichael commented 3 years ago

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:

IJMacD commented 3 years ago

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!)

miiichael commented 3 years ago

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). 😅