Created
March 6, 2018 16:21
-
-
Save jesgundy/11f298797c38b72d28bf8e84145edb44 to your computer and use it in GitHub Desktop.
Log Client Events
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
// log client side errors | |
window.onerror = function (message, url, lineNumber) { | |
// line number is useless since it is compiled | |
$.post(Kin.RootUrl + 'api/log/javascripterror', { message: message }, function (resp) { | |
}); | |
return false; // continue to call the default handler | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment