Posted By

dmistriotis on 09/20/10


Tagged


Versions (?)

firebug existance


 / Published in: JavaScript
 

  1. if (window.console && window.console.firebug) {
  2. console.log('firebug exists');
  3. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: mark90 on October 8, 2010

it doesn't work preview

Posted By: dmistriotis on October 19, 2010

I think it does. window.console would exist in different browsers that support it (like chrome, which has a console but not firebug) and window.console.firebug for specific firebug existence.

What do you use instead?

Posted By: dmistriotis on October 19, 2010

https://docs.google.com/leaf?id=0ByYbq1RM8pYTNTNlYjQwMTUtZTQ4Ny00ZDgyLThhOGUtZDVkZmZkYzhkODA3&sort=name&layout=list&num=50

It works!

You need to login to post a comment.