Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Firebug console stylesheet registration fix

  • Loading branch information...
commit 01f61baa070e221cbe67f1f8796c3c5a90ad0865 1 parent f266d07
@cadorn cadorn authored
View
4 extension/chrome/content/lib/renderer.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;
};
View
4 extension/chrome/content/main.js
@@ -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() {}
Please sign in to comment.
Something went wrong with that request. Please try again.