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.

贡献者指南