mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:48:00 +01:00
make liberator.hasExtension work in Muttator - FUEL is FF only
This commit is contained in:
@@ -866,7 +866,14 @@ const liberator = (function () //{{{
|
|||||||
return features.indexOf(feature) >= 0;
|
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)
|
help: function (topic)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user