From 6a6d63d8f2e6e04644fcf93d9937508af6eefff2 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Thu, 9 Jul 2015 14:03:09 -0500 Subject: Initial adaptation to v38.x --- data/extensions/spyblock@gnu.org/lib/utils.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'data/extensions') diff --git a/data/extensions/spyblock@gnu.org/lib/utils.js b/data/extensions/spyblock@gnu.org/lib/utils.js index 13f4876..cd69bf9 100644 --- a/data/extensions/spyblock@gnu.org/lib/utils.js +++ b/data/extensions/spyblock@gnu.org/lib/utils.js @@ -47,6 +47,18 @@ let Utils = exports.Utils = return addonVersion; }, + /** + * Returns whether we are running in Fennec, for Fennec-specific hacks + * @type Boolean + */ + get isFennec() + { + let {application} = require("info"); + let result = (application == "fennec" || application == "fennec2"); + Object.defineProperty(this, "isFennec", {value: result}); + return result; + }, + /** * Returns whether we are running in Fennec, for Fennec-specific hacks * @type Boolean -- cgit v1.2.3