检测Firefox扩展版本 [英] Detecting Firefox extension version
问题描述
我知道FUEL的extIExtension允许你看到一个Firefox扩展,我想用install.rdf中的版本填充About框。版本的扩展名,但我没有使用FUEL创建扩展(MDC上的文档似乎很清楚如何转换到它)。有没有一种方法来动态检查扩展版本?
我特别不想硬编码或从我的生成文件生成
< DIV CLASS = h2_lin>解决方案
@sdwilsh,你是对的,我道歉。
我花了一段时间来实现唯一的燃料对象我有访问fuelApplication,但它看起来像这样:
let version = Application.extensions.get('扩展@ ID)版本。
I have a Firefox Extension that I would like to populate the About box with the version within install.rdf.
I know that FUEL's extIExtension allows one to see the version for an extension but I did not create the extension using FUEL (and the docs on MDC seem very light on how to transition to it). Is there a way to dynamically check the extension version?
I specifically do not want to hard code or make it generated from my Makefile
@sdwilsh, you're right, my apologizes.
Took me awhile to realize the only FUEL object I have access to is fuelApplication, but it looks like this does it:
let version = Application.extensions.get('extension@id').version;
这篇关于检测Firefox扩展版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!