Skip to content

Commit

Permalink
Import AddonManager module for AddonManagerPrivate reference.
Browse files Browse the repository at this point in the history
Fixes #1509
  • Loading branch information
Anthony Lieuallen committed Feb 6, 2012
1 parent 57670de commit 54d7112
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/script.js
@@ -1,5 +1,11 @@
var EXPORTED_SYMBOLS = ['Script'];

try {
Components.utils.import('resource://gre/modules/AddonManager.jsm');
} catch (e) {
// Ignore; assume we're in Firefox 3, where this is not present.
}

Components.utils.import('resource://greasemonkey/constants.js');
Components.utils.import('resource://greasemonkey/prefmanager.js');
Components.utils.import('resource://greasemonkey/scriptIcon.js');
Expand Down

0 comments on commit 54d7112

Please sign in to comment.