diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2015-07-09 14:03:09 -0500 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2015-10-12 23:19:26 -0500 |
commit | 6a6d63d8f2e6e04644fcf93d9937508af6eefff2 (patch) | |
tree | 85592e68d874a1a20115eedcdd92bd18ae66aa74 /data/extensions | |
parent | 4d18722d200805d5e56e8cd1dcfac61451f4f4f0 (diff) |
Initial adaptation to v38.x
Diffstat (limited to 'data/extensions')
-rw-r--r-- | data/extensions/spyblock@gnu.org/lib/utils.js | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -54,6 +54,18 @@ let Utils = exports.Utils = 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 + */ + get isFennec() + { + let {application} = require("info"); let result = (application == "fennec" || application == "fennec2" || application == "icecatmobile"); Utils.__defineGetter__("isFennec", () => result); return result; |