getify/h5ive-DEPRECATED

storage module needs "out of memory" handling

Aperta

#6 aperta il 4 giu 2013

 (0 commenti) (0 reazioni) (1 assegnatario)JavaScript (60 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (325 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor