-
-
Notifications
You must be signed in to change notification settings - Fork 642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SecurityError when storage is disabled #158
Comments
Thanks. localStorage we should then do a try/catch around localStorage because we don't really need it. It is only used for making Dexie.getDatabaseNames() work. Ill look into it later. |
Thanks! |
Any update on that issue ? |
No. Thanks for reminder |
I hope the last checkin helps. However, if you forbid the browser from storing any any data locally, indexedDB would also be disabled, so expect another error, I suppose. |
If I remember correctly, it happens in Safari in private mode (not sure if database is disabled too). But I think the lib can fail more gracefully than dying during initialization ;) |
So true ;) |
Solved in v1.3.4 |
If a user disables cache (privacy settings > prevent all sites to set data), Dexie throws this error
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
Line
localStorage: ((typeof chrome !== "undefined" && chrome !== null ? chrome.storage : void 0) != null ? null : global.localStorage)
The text was updated successfully, but these errors were encountered: