-
Notifications
You must be signed in to change notification settings - Fork 216
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
[4.x] Access to Local Storage can be blocked in Chrome #997
Comments
Thanks for reporting this issue, I will investigate this tomorrow morning. 👍 |
@olafcm Just to be clear, your search is working, but you got the |
Yes, I tested it and search works. It probably only affects the search results caching. |
I just don't preserve the state of the hosts after the refresh, and it uses the fallback in memory cache:
I will see if we can avoid the warning on the console. Otherwise everything seems to be working as expected. |
I wonder if adding a .catch which still throws, but without the default error message will avoid it showing on the console. Line 31 in d862a91
|
We are using algoliasearch-client-javascript/packages/cache-common/src/createFallbackableCache.ts Line 21 in d862a91
That performs a |
@olafcm can you also review the pull request that I just made? |
The bug has been fixed in version |
Works perfect, thank you very much for the perfect and quick fix @nunomaduro 🎈 |
We updated to v4 of the client.
Since then we started to receive the following error for Chrome users:
The issue happens here:
More info: https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document
Is it possible for the client to detect if the LocalStorage is available? I.e. use: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/storage/localstorage.js
Thank you
The text was updated successfully, but these errors were encountered: