open-accessibility
open-accessibility copied to clipboard
safari > 11 QuotaExceededError error in private mode
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
Thanks for the report!
would you please make a Pull Request with a fix?
I can but I made another change in my fork let me know what you think: the problem is in applyTextZoom() this function run even if the user never changes any accessibility option, and it really messed up the performance on site its not a good idea to mess with the dom when not needed, I made a quick hack but I can make a pretty fix it, to only run if zoom is changed or is not 1