Created
April 30, 2014 01:48
-
-
Save yajd/17ee5b1b98cb717c8429 to your computer and use it in GitHub Desktop.
_ff-addon-snippet-AccessBootstrapScope - example of how to access addon module scope of bootstrapped addon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var XPIScope = Cu.import('resource://gre/modules/XPIProvider.jsm'); | |
alert(XPIScope.XPIProvider) | |
var scope = XPIScope.XPIProvider.bootstrapScopes['ghForkable@jetpack']; | |
alert(scope) |
Noitidart
commented
Oct 10, 2015
var getScope = function() { var XPIScope = Cu.import('resource://gre/modules/addons/XPIProvider.jsm'); return XPIScope.XPIProvider.bootstrapScopes['MouseControl@jetpack']; }; a = getScope();
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment