diff options
Diffstat (limited to 'data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/lib/devtools/gcli.js')
-rw-r--r-- | data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/lib/devtools/gcli.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/lib/devtools/gcli.js b/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/lib/devtools/gcli.js deleted file mode 100644 index e1bb17f..0000000 --- a/data/extensions/jid1-KtlZuoiikVfFew@jetpack/node_modules/pathfinder/lib/devtools/gcli.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -const { Cu } = require('chrome'); -const { when: unload } = require('unload'); - -try { - // Starting with FF 23, gcli.jsm moved to another location - Cu.import("resource://gre/modules/devtools/gcli.jsm"); -} catch(e) { - try { - Cu.import("resource:///modules/devtools/gcli.jsm"); - } catch(e) { - console.error("Unable to load gcli.jsm"); - } -} - -function addCommand(cmd) { - let name = cmd.name; - gcli.addCommand(cmd); - unload(gcli.removeCommand.bind(gcli, name)); -} -exports.addCommand = addCommand; -exports.removeCommand = gcli.removeCommand; |