getify/h5ive-DEPRECATED

storage module needs "out of memory" handling

開放

#6 建立於 2013年6月4日

 (0 則留言) (0 個反應) (1 位負責人)JavaScript (60 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (325 顆星)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南