In addition to the last answer given in this thread
http://groups.google.com/group/firebug/browse_thread/thread/17902c0dd061eeb8
that you should check weather Firebug is installed with
if (!window.console || !console.firebug)
I would like to add checking for window.console in Chrome (7.05) will
return [object Console], so if you want to be absolutely sure weather
Firebug is installed check only for console.firebug.
And if you check with
if (!console.firebug)
I would be extra careful since this is JavaScript. In this case it
works just fine, but keep in mind:
If IS-NOT is zero, result is 1, but:
(console.firebug != null) // false / null
(console.firebug != null) // false / null
(console.firebug !== null) // true
In order to avoid such headaches, I would check like this
if (console.firebug === undefined) // true if firebug is not
installed
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en.