Created
July 1, 2015 17:59
-
-
Save brianr/58899467f58b80eee1eb to your computer and use it in GitHub Desktop.
rollbar.js checkIgnore to ignore all "Script error" uncaught errors
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
_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