Skip to content

Instantly share code, notes, and snippets.

@brianr
Created September 5, 2014 22:47
Show Gist options
  • Select an option

  • Save brianr/7828ffb0bd4f2212b247 to your computer and use it in GitHub Desktop.

Select an option

Save brianr/7828ffb0bd4f2212b247 to your computer and use it in GitHub Desktop.
rollbar.js checkIgnore configuration to ignore IE7 errors
_rollbarConfig = {
accessToken: "token here",
checkIgnore: function(isUncaught, args, payload) {
var isIE7 = (window.navigator.userAgent.indexOf("MSIE 7") !== -1);
if (isUncaught && isIE7) {
// uncaught error, and we are in IE 7. return true to ignore.
return true;
}
// don't ignore anything else
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment