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

add liberator.hasExtension for testing for the presence of a given FF extension

This commit is contained in:
Doug Kearns
2008-10-31 11:36:19 +00:00
parent c3ce38db9c
commit ca28dafa8a

View File

@@ -866,6 +866,8 @@ 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),
help: function (topic) help: function (topic)
{ {
var where = (options["newtab"] && options.get("newtab").has("all", "help")) var where = (options["newtab"] && options.get("newtab").has("all", "help"))