Skip to content

Commit

Permalink
Merge pull request #292 from skovhus/more-strict-ignoreErrors
Browse files Browse the repository at this point in the history
More strict ignoreErrors
  • Loading branch information
mattrobenolt committed Nov 16, 2014
2 parents ee7fe10 + 4d64630 commit 1745ba8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/raven.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,8 @@ var Raven = {

// "Script error." is hard coded into browsers for errors that it can't read.
// this is the result of a script being pulled in from an external domain and CORS.
globalOptions.ignoreErrors.push('Script error.');
globalOptions.ignoreErrors.push('Script error');

// Other variants of external script errors:
globalOptions.ignoreErrors.push('Javascript error: Script error on line 0');
globalOptions.ignoreErrors.push('Javascript error: Script error. on line 0');
globalOptions.ignoreErrors.push(/^Script error\.?$/);
globalOptions.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/);

// join regexp rules into one big rule
globalOptions.ignoreErrors = joinRegExp(globalOptions.ignoreErrors);
Expand Down

0 comments on commit 1745ba8

Please sign in to comment.