Skip to content

Commit

Permalink
Update debugger from upstream
Browse files Browse the repository at this point in the history
from facebook/react-native@b03a725, but in production
  • Loading branch information
jhen0409 committed Jun 15, 2016
1 parent 0e504a8 commit 3ca1fcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/containers/Debugger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export default class Debugger extends Component {
// Special message that asks for a new JS runtime
if (object.method === 'prepareJSRuntime') {
shutdownJSRuntime();
if (process.env.NODE_ENV !== 'development') {
console.clear();
}
createJSRuntime();
ws.send(JSON.stringify({ replyID: object.id }));
setStatusToTitle('connected', 'Debugger session #' + object.id + ' active.');
Expand Down

0 comments on commit 3ca1fcb

Please sign in to comment.