I have a custom phtml pages in Magento. As far I know Magento uses jQuery and prototype libraries.
For example, if I need external jQuery/jQueryUI, I need t
Why not check if the Console object is defined first?
Instead of:
if (!("console" in window) || !("firebug" in console))
You could write:
if( typeof console === 'undefined' )