Skip to content

Instantly share code, notes, and snippets.

@jesgundy
Created March 6, 2018 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesgundy/11f298797c38b72d28bf8e84145edb44 to your computer and use it in GitHub Desktop.
Save jesgundy/11f298797c38b72d28bf8e84145edb44 to your computer and use it in GitHub Desktop.
Log Client Events
// 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