Skip to content

Instantly share code, notes, and snippets.



Forked from astorm/gist:992233
Created Nov 16, 2012
What would you like to do?
Fix console.log in Chrome and Magento
<!-- Add to the package layout (via local.xml or however you prefer) -->
<!-- Also, best to remove before deployment, as some users report -->
<!-- it makes IE 7 crash -->
<reference name="content">
<block type="core/text" name="fix.console" as="fix.console">
<action method="setText">
<text><![CDATA[<script type="text/javascript">
iframe = document.createElement('iframe'); = 'none';
window.console = iframe.contentWindow.console;
console.firebug = "faketrue";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.