Skip to content

Added Storage wrapper to avoid localStorage errors with cookies disabled #242

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

Closed
wants to merge 2 commits into from

Conversation

eusonlito
Copy link

Some users (like myself) have cookies disabled by default in our browsers (especially mobile) to try protect privacy a little bit more.

If you use localStorage with cookies disabled you will get an error and javascript will stop working.

This is a patch to avoid localStorage permission errors.

@pascalbaljet
Copy link
Member

Thanks for the PR! Unfortunately, I'll close it as it's a bit of an edge case, and it seems the Algolia search integration also uses Local Storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants