From ca28dafa8a184b2e1c532ada0943a7cce588e3cf Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 31 Oct 2008 11:36:19 +0000 Subject: [PATCH] add liberator.hasExtension for testing for the presence of a given FF extension --- content/liberator.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/liberator.js b/content/liberator.js index 1d2a6194..3cfc484e 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -866,6 +866,8 @@ const liberator = (function () //{{{ return features.indexOf(feature) >= 0; }, + hasExtension: function (name) Application.extensions.all.some(function (e) e.name == name), + help: function (topic) { var where = (options["newtab"] && options.get("newtab").has("all", "help"))