jossef / jossef/open-accessibility

safari > 11 QuotaExceededError error in private mode

Open
#18 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
41
Forks
17
PR merge metrics
No merged PRs in 30d

Description

the error is raised when using localStorage in safari private mode in version prior to 11, the solution is pretty easy
wrap localStorage call in setUserOptions() with try catch:

you can read more about it here https://stackoverflow.com/questions/21159301/quotaexceedederror-dom-exception-22-an-attempt-was-made-to-add-something-to-st

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.