Skip to content

Commit

Permalink
Avoid error messages in the tracing console
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Nov 21, 2013
1 parent 7ef1a90 commit 701e7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/content/firebug/chrome/reps.js
Expand Up @@ -1209,7 +1209,7 @@ FirebugReps.Element = domplate(Rep,
{
// Remote objects can't use instanceof operand so, they use 'type' instead.
// All HTML element types starts with 'HTML' prefix.
if (Str.hasPrefix(type, "HTML"))
if (type && Str.hasPrefix(type, "HTML"))
return true;

return object instanceof window.Element;
Expand Down

0 comments on commit 701e7ae

Please sign in to comment.