File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 12
12
//cool
13
13
//really cool
14
14
//awesome
15
- Raven . config ( 'http://50dbe04cd1224d439e9c49bf1d0464df@localhost:8000/1' ) . install ( ) ;
15
+ Raven . config ( 'http://50dbe04cd1224d439e9c49bf1d0464df@localhost:8000/1' , {
16
+ whitelistUrls : [
17
+ / l o c a l h o s t /
18
+ ] ,
19
+ dataCallback : function ( data ) {
20
+ console . log ( data ) ;
21
+ return data ;
22
+ }
23
+ } ) . install ( ) ;
16
24
17
25
Raven . setUserContext ( {
18
26
27
35
< button onclick ="divide(1, 0) "> Sourcemap breakage</ button >
28
36
< button onclick ="derp() "> window.onerror</ button >
29
37
< button onclick ="testOptions() "> test options</ button >
38
+ < button onclick ="throwString() "> throw string</ button >
30
39
31
40
</ body >
32
41
</ html >
Original file line number Diff line number Diff line change @@ -36,3 +36,7 @@ function testOptions() {
36
36
throw new Error ( 'foo' ) ;
37
37
} ) ;
38
38
}
39
+
40
+ function throwString ( ) {
41
+ throw 'oops' ;
42
+ }
You can’t perform that action at this time.
0 commit comments