Created
August 15, 2013 00:25
-
-
Save richdownie/6237164 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<script> | |
//persist errors in jsErrors for ui testing | |
//<![CDATA[ | |
window.jsErrors = []; | |
window.onerror = function(errorMessage, url, linenumber) { | |
window.jsErrors[window.jsErrors.length] = errorMessage + ' (' + url + ':' + linenumber + ')'; | |
} | |
//]]> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment