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

QuotaExceededError on scroll , Safari private mode #813

Closed
tripper54 opened this issue Oct 21, 2016 · 2 comments
Closed

QuotaExceededError on scroll , Safari private mode #813

tripper54 opened this issue Oct 21, 2016 · 2 comments

Comments

@tripper54
Copy link

Safari private mode throws a QuotaExceededError whenever you try to push something into localstorage.

With vue-router this appears to be happening on scroll in saveScrollPosition.

@LinusBorg
Copy link
Member

Hm yeah, In private mode, websites can't save anything to localstorage.

Will check out if we can prevent the error from appearing.

@MatteoGabriele
Copy link

MatteoGabriele commented Nov 2, 2016

I've seen this error recently and I had to disable this nice feature.
I wrote this little module which handles browser storage: it tries to save in the localStorage in first place, then it tries cookies, which are better supported in private windows. If can't support cookies either, maybe because the user is blocking them, a plain object will kick in to save data.

Don't know if can help to fix the issue quickly :)

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

No branches or pull requests

3 participants