Permalink
Browse files

Firebug console stylesheet registration fix

  • Loading branch information...
1 parent f266d07 commit 01f61baa070e221cbe67f1f8796c3c5a90ad0865 @cadorn cadorn committed Jan 5, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −3 extension/chrome/content/lib/renderer.js
  2. +4 −0 extension/chrome/content/main.js
@@ -18,12 +18,10 @@ function(JSON, DOMPLATE, REPS)
this.defaultRep = null;
this.reps = [];
- Firebug.registerStylesheet("resource://firephp/content/lib/console.css");
-
REPS.init(this);
};
- Renderer.prototype.RegisterConsoleTemplate = function(Name, Template)
+ Renderer.prototype.RegisterConsoleTemplate = function(Name, Template)
{
this.consoleTemplates[Name] = Template;
};
@@ -7,6 +7,10 @@ define([
],
function(FBTrace, TraceModule, TraceListener, FirePHP)
{
+ // NOTE: This needs to stay here as we need to register the stylesheet right away
+ // otherwise Firebug may skip it!
+ // TODO: Trigger stylesheet inject in Firebug if added after init.
+ Firebug.registerStylesheet("resource://firephp/content/lib/console.css");
var FirePHPApp = function() {}

0 comments on commit 01f61ba

Please sign in to comment.