yize / xswitch

A Chrome Extension for redirecting/forwarding request urls
https://chrome.google.com/webstore/detail/xswitch/idkjhjggpffolpidfkikidcokdkdaogg
MIT License
992 stars 121 forks source link

BUGFIX: Unchecked runtime.lastError: QUOTA_BYTES_PER_ITEM quota excee… #43

Closed overkazaf closed 5 years ago

overkazaf commented 5 years ago

Unchecked runtime.lastError: QUOTA_BYTES_PER_ITEM quota exceeded

image

修复因chrome.storage.sync.set/get的最大使用空间限制造成的配置项存储失败,改用chrome.storage.local.set/get实现,未来可对用户暴露存储空间选择的配置顶。

参考资料: https://stackoverflow.com/questions/33015723/unchecked-runtime-lasterror-while-running-storage-set-quota-bytes-per-item-quot https://developer.chrome.com/extensions/storage

coveralls commented 5 years ago

Coverage Status

Coverage increased (+0.1%) to 83.086% when pulling fceb9c412216bd1f381e039416c514cd3a9bec6f on overkazaf:master into 152f76954d2259044dca0799c46034ab45f08491 on yize:master.

yize commented 5 years ago

如钉钉沟通,这块地方我们最想要的是接下来可以在多机器上同步配置。目前先用 local 是 ok 的,不过缺少对老数据的兼容,应该多加一步 check 和同步。