2 ms·
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document. I feel like this happens on the majority
by deathanatos 12y ago
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
I feel like this happens on the majority of the demos on the HN frontpage too. I just tried searching for what percentage of users disable cookies, and it seems like ~10% is a common figure. (Though I got numbers as low a ~1%, and a lot of confusion about third-party cookies.) I know this isn't technically a cookie, but I think most of the major browser vendors lump it under the same preference.
Anyways, hackers and demo writers: degrade gracefully. On first brush with your random website, I might not want to let you track me. (I don't know what you're using this for.) Show me value. Or at least tell me why you need this.
- awendt 12y agoThank you for reporting this, I've create an issue: https://github.com/awendt/memory-chimp/issues/1 https://github.com/awendt/memory-chimp/issues/1. To explain why I do this: There's one write to localStorage, to persist your personal best across sessions. In my defense, I did read the guidelines before posting this and it explicitly said: > HN users are comfortable with work that's at an early stage. This is my first "Show HN." I'll put "graceful degradation" on my list for next time :)
- awendt 12y agoThis is now fixed.