如何让我的Chrome扩展用户知道何时更新扩展? [英] How do I let my chrome extension users know when the extension is updated?

查看:134
本文介绍了如何让我的Chrome扩展用户知道何时更新扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

我已经提交了一个答案和一个工作代码示例这里 Chrome扩展第一次运行
检测Chrome扩展程序第一次运行/更新



您从清单中获得版本。 json ,将其存储到 localStorage 中。在你的后台页面中,你检查你的版本是否已经设置(通过未定义),如果没有设置你知道你的扩展刚刚安装,否则如果版本改变,你知道它正在更新


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

这篇关于如何让我的Chrome扩展用户知道何时更新扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆