Detecting Firefox extension version

北慕城南 提交于 2019-12-23 04:22:54

问题


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


回答1:


@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;



回答2:


FUEL is just an API, so it doesn't matter how you implemented your add-on.



来源:https://stackoverflow.com/questions/1965310/detecting-firefox-extension-version

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