火狐插件开发:检测不兼容的插件? [英] Firefox Addon Development : Detecting non-compatible addons?
本文介绍了火狐插件开发:检测不兼容的插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谢谢
函数isExtEnabled()解决方案
){
if(!Application.extensions.has('EXTENSION_ID_HERE')){
return false;
}
返回true;
}
Few addons are not compatible with mine, so how to detect their presence and inform the user.
Thanks
解决方案
OK got it here is how this is done :
function isExtEnabled(){
if(!Application.extensions.has('EXTENSION_ID_HERE')) {
return false;
}
return true;
}
这篇关于火狐插件开发:检测不兼容的插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文