Skip to content

Commit 3ca1fcb

Browse files
committed
Update debugger from upstream
from facebook/react-native@b03a725, but in production
1 parent 0e504a8 commit 3ca1fcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/containers/Debugger/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ export default class Debugger extends Component {
117117
// Special message that asks for a new JS runtime
118118
if (object.method === 'prepareJSRuntime') {
119119
shutdownJSRuntime();
120+
if (process.env.NODE_ENV !== 'development') {
121+
console.clear();
122+
}
120123
createJSRuntime();
121124
ws.send(JSON.stringify({ replyID: object.id }));
122125
setStatusToTitle('connected', 'Debugger session #' + object.id + ' active.');

0 commit comments

Comments
 (0)