diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/textbox.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx index db28fe3ab..16219156d 100644 --- a/web/react/components/textbox.jsx +++ b/web/react/components/textbox.jsx @@ -113,6 +113,8 @@ module.exports = React.createClass({ handleKeyPress: function(e) { var text = this.refs.message.getDOMNode().value; + //Since these should only happen when you have no connection and slightly briefly after any + //performance hit should not matter if (this.state.connection === " bad-connection" && this.state.numPresses > 5) { AppDispatcher.handleServerAction({ type: ActionTypes.RECIEVED_ERROR, |