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
In the file js.js there is this code :
if (!("console" in window) || !("firebug" in console))
{
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i)
window.console[names[i]] = function() {}
}
So what it actually does, if the console is not the firebug console (in firefox) , it deactivate it. So in the built in console of google chrome, it doesn't work.
There is 2 options : Use firefox with firebug , or remove this block of code.