File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ module.exports = function (Raven) {
30
30
31
31
if ( request . status === 200 ) {
32
32
if ( options . onSuccess ) {
33
- options . onSuccess ;
33
+ options . onSuccess ( ) ;
34
34
}
35
35
} else {
36
36
if ( options . onError ) {
Original file line number Diff line number Diff line change @@ -359,6 +359,21 @@ var Raven = {
359
359
return Raven ;
360
360
} ,
361
361
362
+ /**
363
+ * Override the default HTTP transport mechanism that transmits data
364
+ * to the Sentry server.
365
+ *
366
+ * @param {function } transport Function invoked instead of the default
367
+ * `makeRequest` handler.
368
+ *
369
+ * @return {Raven }
370
+ */
371
+ setTransport : function ( transport ) {
372
+ globalOptions . transport = transport ;
373
+
374
+ return Raven ;
375
+ } ,
376
+
362
377
/*
363
378
* Get the latest raw exception that was captured by Raven.
364
379
*
You can’t perform that action at this time.
0 commit comments