Last active
September 20, 2016 19:06
-
-
Save LeKovr/6ef6d10ddd958fc86de277bd2e083d82 to your computer and use it in GitHub Desktop.
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
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