Last active
October 16, 2019 07:09
-
-
Save AirStair/b2e7d6d8629a63c1e104d1b336f288bc 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
function jsExceptionStore(JsException) { | |
var request = new XMLHttpRequest(); | |
request.open('GET', 'js-exception-store?user_agent='.concat(navigator.userAgent, '&js_exception_message=', JsException.message, '&js_exception_file_name=', JsException.fileName, '&js_exception_line_number=', JsException.lineNumber), false); | |
request.send(); | |
} | |
try { | |
throw 'JsException #0'; | |
} | |
catch (e) { | |
jsExceptionStore(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment