Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Better feedback on failed message

  • Loading branch information...
commit 82d0b18bd19aa91236772d7b0b34d7babb32befa 1 parent 3736a55
@remy authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 public/index.html
View
6 public/index.html
@@ -289,11 +289,13 @@
message.form.onsubmit = function () {
if (socket.readyState == 1) {
- log('\u00AB "' + message.value + '"');
+ log('\u00AB ' + message.value);
socket.send(message.value);
window.location.hash = this.id;
+ message.value = '';
+ } else {
+ log('Socket not connected yet');
}
- message.value = '';
return false;
};
}
Please sign in to comment.
Something went wrong with that request. Please try again.