File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,8 @@ var Raven = {
76
76
77
77
// "Script error." is hard coded into browsers for errors that it can't read.
78
78
// this is the result of a script being pulled in from an external domain and CORS.
79
- globalOptions . ignoreErrors . push ( 'Script error.' ) ;
80
- globalOptions . ignoreErrors . push ( 'Script error' ) ;
81
-
82
- // Other variants of external script errors:
83
- globalOptions . ignoreErrors . push ( 'Javascript error: Script error on line 0' ) ;
84
- globalOptions . ignoreErrors . push ( 'Javascript error: Script error. on line 0' ) ;
79
+ globalOptions . ignoreErrors . push ( / ^ S c r i p t e r r o r \. ? $ / ) ;
80
+ globalOptions . ignoreErrors . push ( / ^ J a v a s c r i p t e r r o r : S c r i p t e r r o r \. ? o n l i n e 0 $ / ) ;
85
81
86
82
// join regexp rules into one big rule
87
83
globalOptions . ignoreErrors = joinRegExp ( globalOptions . ignoreErrors ) ;
You can’t perform that action at this time.
0 commit comments