getify/h5ive-DEPRECATED

storage module needs "out of memory" handling

Open

#6 aperta il 4 giu 2013

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

Metriche repository

Star
 (325 star)
Metriche merge PR
 (Metriche PR in attesa)

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