Created
September 5, 2014 22:47
-
-
Save brianr/7828ffb0bd4f2212b247 to your computer and use it in GitHub Desktop.
rollbar.js checkIgnore configuration to ignore IE7 errors
This file contains hidden or 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: "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