1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48:00 +01:00

make liberator.hasExtension work in Muttator - FUEL is FF only

This commit is contained in:
Doug Kearns
2008-10-31 16:00:14 +00:00
parent ca28dafa8a
commit e412a11d77

View File

@@ -866,7 +866,14 @@ const liberator = (function () //{{{
return features.indexOf(feature) >= 0;
},
hasExtension: function (name) Application.extensions.all.some(function (e) e.name == name),
hasExtension: function (name)
{
let manager = Components.classes["@mozilla.org/extensions/manager;1"]
.getService(Components.interfaces.nsIExtensionManager);
let extensions = manager.getItemList(Components.interfaces.nsIUpdateItem.TYPE_EXTENSION, {});
return extensions.some(function (e) e.name == name);
},
help: function (topic)
{