Skip to content

Commit

Permalink
Avoid send hideHighlight event for React DevTools
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jul 11, 2016
1 parent 02d8d3e commit 3e2303e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/containers/ReactDevTools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ export default class ReactDevTools extends Component {
listeners.push(fn);
},
send(data) {
if (
data.events &&
data.events.length &&
data.events[0].evt === 'hideHighlight'
) {
return;
}
socket.send(JSON.stringify(data));
},
disconnect() {
Expand Down

0 comments on commit 3e2303e

Please sign in to comment.