How do I let my chrome extension users know when the extension is updated?

我是研究僧i 提交于 2019-12-08 10:03:06

问题


I want to show them a popup with the new features.


回答1:


I have submitted an answer and a working code example here chrome extension first run: Detect Chrome extension first run / update

You get the version from the manifest.json, you store that into your localStorage. In your background page, you check if your version has been set (via undefined) if it isn't set you know that your extension just installed, otherwise if the versions changed, you know it is being updating




回答2:


Store version variable in a localStorage and have local current_version variable hardcoded into javascript. Then during extension startup (in background.html) compare those two. After that update localStorage variable with the current version.



来源:https://stackoverflow.com/questions/4910684/how-do-i-let-my-chrome-extension-users-know-when-the-extension-is-updated

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