Mercurial > powerbox
diff extension/modules/setup.js @ 4:1c02976d8809
Changed to Firebug's progress listener, which allows us to inject our code before any scripts are executed on target pages.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 06 Aug 2009 17:18:45 -0700 |
parents | 889c2fd4c9cf |
children |
line wrap: on
line diff
--- a/extension/modules/setup.js Thu Aug 06 15:50:24 2009 -0700 +++ b/extension/modules/setup.js Thu Aug 06 17:18:45 2009 -0700 @@ -46,8 +46,6 @@ Cc["@mozilla.org/steel/application;1"] .getService(Ci.steelIApplication); -let gIsInitialized = false; - let PowerboxSetup = { getExtensionDirectory: function getExtensionDirectory() { let extMgr = Cc["@mozilla.org/extensions/manager;1"] @@ -82,11 +80,8 @@ }, installToWindow: function installToWindow(window) { - if (!gIsInitialized) { - gIsInitialized = true; - var Injector = {}; - Cu.import("resource://powerbox/modules/content-injector.js", Injector); - Injector.init(); - } + var Injector = {}; + Cu.import("resource://powerbox/modules/content-injector.js", Injector); + Injector.init(window); } };