I use Firebug’s console.log() for debugging my website. If I try viewing my website in browsers without Firebug then I get a console is not defined error.
Is there a way to gracefully avoid this error?
I found this potential solution, but it seems a bit cumbersome.
And ideas?
Firebug source code provides a file to do this :
See firebugx.js
Do not reinvent the wheel every day 🙂