Created
May 16, 2012 12:48
-
-
Save andyhausmann/2710091 to your computer and use it in GitHub Desktop.
Magento // Bring back your JavaScript Console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<layout version="0.1.0"> | |
<default> | |
<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'); | |
iframe.style.display = 'none'; | |
document.getElementsByTagName('body')[0].appendChild(iframe); | |
window.console = iframe.contentWindow.console; | |
console.firebug = "faketrue"; | |
</script>]]></text> | |
</action> | |
</block> | |
</reference> | |
</default> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just throw this into your local.xml.