Skip to content

Instantly share code, notes, and snippets.

@brianr
Created July 1, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brianr/58899467f58b80eee1eb to your computer and use it in GitHub Desktop.
Save brianr/58899467f58b80eee1eb to your computer and use it in GitHub Desktop.
rollbar.js checkIgnore to ignore all "Script error" uncaught errors
_rollbarConfig = {
accessToken: 'your token',
captureUncaught: true,
payload: {
environment: 'production',
},
checkIgnore: function(isUncaught, args, payload) {
if (isUncaught && args[0] && args[0].indexOf('Script error') === 0) {
// ignore
return true;
}
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment