Chrome extension cleans storage on uninstall

本小妞迷上赌 提交于 2019-12-02 09:27:10

问题


Is there any way to prevent deleting localStorage and data in sync storage (chrome.storage.sync) when user is uninstalls extension? I need to keep persistant authorization data (at least for testing)


回答1:


The answer is no. But there's a bug (or feature?): IndexedDB storage is not deleted with your extension data. Probably you can try that.



来源:https://stackoverflow.com/questions/22396467/chrome-extension-cleans-storage-on-uninstall

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!