Skip to content

Commit c20a5a4

Browse files
committed
preventDefault -> noRethrow
1 parent 3fe1845 commit c20a5a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/react-native.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* pathStrip: A RegExp that matches the portions of a file URI that should be
1313
* removed from stacks prior to submission.
1414
*
15-
* preventDefault: Pass true if you DO NOT wish for Raven to call the original
15+
* noRethrow: Pass true if you DO NOT wish for Raven to call the original
1616
* global exception handler (e.g. don't crash the app).
1717
*/
1818
'use strict';
@@ -87,7 +87,7 @@ function reactNativePlugin(Raven, pluginOptions) {
8787

8888
ErrorUtils.setGlobalHandler(function(){
8989
var error = arguments[0];
90-
if (!pluginOptions.preventDefault) {
90+
if (!pluginOptions.noRethrow) {
9191
defaultHandler.apply(this, arguments)
9292
}
9393
Raven.captureException(error);

0 commit comments

Comments
 (0)