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.

贡献者指南