Skip to content

Instantly share code, notes, and snippets.

@don
Created November 8, 2013 01:31
Show Gist options
  • Select an option

  • Save don/7364837 to your computer and use it in GitHub Desktop.

Select an option

Save don/7364837 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
window.console = {
log: function (str) { window.external.Notify(str); }
};
// output errors to console log
window.onerror = function (e) {
console.log("window.onerror ::" + JSON.stringify(e));
};
console.log("Installed console !");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment