getify/h5ive-DEPRECATED

storage module needs "out of memory" handling

Open

#6 建立於 2013年6月4日

在 GitHub 查看
 (0 留言) (0 反應) (1 負責人)JavaScript (60 fork)github user discovery
enhancementhelp wanted

倉庫指標

Star
 (325 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南