Skip to content
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

fix localstorage issue for private browsing #11

Merged
merged 1 commit into from Oct 2, 2016

Conversation

stephanebachelier
Copy link
Contributor

@stephanebachelier stephanebachelier commented Sep 28, 2016

At least localStorage is present in private browsing but call setItem will throw a DOM Exception 22.

I've changed the check to call setItem. If setItem is supported a call to removeItem is made to remove the change. In case of private browsing the catch block will be called as before.

@studentIvan studentIvan merged commit 6f3df7c into studentIvan:master Oct 2, 2016
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.

None yet

2 participants