sdether / josh.js

Toolkit for building a bash-like shell in the browser, including full readline support
http://sdether.github.com/josh.js/
Apache License 2.0
390 stars 76 forks source link

Josh JS localStorage Issue when using Safari in Private Browsing Mode #24

Closed sdether closed 10 years ago

sdether commented 10 years ago

See issue here: http://stackoverflow.com/questions/14555347/html5-localstorage-error-with-safari-quota-exceeded-err-dom-exception-22-an

[Error] QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota. save (history.js, line 41) History (history.js, line 36)

Any call to local storage will need to get wrapped in a try/catch to catch this error.