Skip to content

Instantly share code, notes, and snippets.

@LeKovr
Last active September 20, 2016 19:06
Show Gist options
  • Save LeKovr/6ef6d10ddd958fc86de277bd2e083d82 to your computer and use it in GitHub Desktop.
Save LeKovr/6ef6d10ddd958fc86de277bd2e083d82 to your computer and use it in GitHub Desktop.
window.onerror = function (msg, url, line, col, error) {
var x = new (this.XMLHttpRequest || ActiveXObject)('MSXML2.XMLHTTP.3.0');
var req = 'msg=' + encodeURIComponent(msg) + '&url='+encodeURIComponent(url) + '&line=' + line + '&col=' +col; // + '&error=' + encodeURIComponent(error);
x.open('GET', '/blank.png?' + req, 1);
x.send();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment