Closed overkazaf closed 5 years ago
Unchecked runtime.lastError: QUOTA_BYTES_PER_ITEM quota exceeded
修复因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
Coverage increased (+0.1%) to 83.086% when pulling fceb9c412216bd1f381e039416c514cd3a9bec6f on overkazaf:master into 152f76954d2259044dca0799c46034ab45f08491 on yize:master.
如钉钉沟通,这块地方我们最想要的是接下来可以在多机器上同步配置。目前先用 local 是 ok 的,不过缺少对老数据的兼容,应该多加一步 check 和同步。
local
Unchecked runtime.lastError: QUOTA_BYTES_PER_ITEM quota exceeded
修复因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