Chrome Plugin Storage : Local Testing

≯℡__Kan透↙ 提交于 2021-01-29 05:27:10

问题


Code snippet:


if(localStorage.getItem("recording")!= null && localStorage.getItem("recording")=="true" && action.element!=null){

actions.push(action);

actions=processActions(actions);

localStorage.setItem("actions",JSON.stringify(actions));
}

With recent version of chrome have started to face issues testing chrome extension with local storage. We have developed an chrome extension which requires storage access.

In Local, we used to upload unpacked extension and then we were able to test the plugin. However, recently we are required to publish it to web store and only then we can test the plugin. This increases time to fix an issue and if there is a bug in the logic, it could get even messier.

Has any 1 faced similar issues or have any idea how to resolve this?

来源:https://stackoverflow.com/questions/65070362/chrome-plugin-storage-local-testing

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