[英]How to find the firefox version from within a XUL app
I have a firefox addon which works for firefox version 3.0 onwards. 我有一个适用于firefox 3.0版及更高版本的firefox插件。 However, a particular feature works only for FF 3.5 onwards.
但是,特定功能仅适用于FF 3.5及更高版本。
I wanted to check from my addon's code that if the FF version is less than 3.5 then I shall disable the particular feature. 我想从插件代码中检查,如果FF版本小于3.5,那么我将禁用该特定功能。 Can someone please tell me how can I find out FF version from my addon's code?
有人可以告诉我如何从插件代码中找到FF版本吗?
Thanks Kapil 谢谢卡皮尔
看起来就像Application.version
-它返回一个字符串,例如'3.6.8'
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.