开发者

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

开发者 https://www.devze.com 2023-02-08 14:42 出处:网络
I开发者_开发问答 want to show them a popup with the new features.I have submitted an answer and a working code example here chrome extension first run:

I开发者_开发问答 want to show them a popup with the new features.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号