h5ive-DEPRECATED icon indicating copy to clipboard operation
h5ive-DEPRECATED copied to clipboard

storage module needs "out of memory" handling

Open getify opened this issue 12 years ago • 0 comments

Only Opera (classic) handles running out of LocalStorage space in a user-graceful way (asking the user to increase). Therefore, the storage module needs to handle this more gracefully than a simple JS error.

We should try/catch when we save to localstorage, and fire a subscribable event to let the dev know in a graceful way that the failure to store happened.

getify avatar Jun 04 '13 21:06 getify