Skip to content

Commit

Permalink
[ReactNative] Only report console.error()s as exceptions in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
philikon committed Apr 30, 2015
1 parent 824da1b commit e5f4773
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function setupRedBoxConsoleErrorHandler() {
var ExceptionsManager = require('ExceptionsManager');
var Platform = require('Platform');
// TODO (#6925182): Enable console.error redbox on Android
if (Platform.OS === 'ios') {
if (__DEV__ && Platform.OS === 'ios') {
ExceptionsManager.installConsoleErrorReporter();
}
}
Expand Down

0 comments on commit e5f4773

Please sign in to comment.