Permalink
Browse files

.

  • Loading branch information...
1 parent 0a3d082 commit d1c86ad0627530da07156fc558a0c7f28042b502 @DanBUK DanBUK committed Feb 6, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 public/index.html
View
@@ -46,10 +46,12 @@
case "":
alert("You did not input a nickname, please reload if you wish to connect.");
sock.disconnect();
+ return null;
break;
case null:
alert("Login cancelled, please reload if you wish to connect.");
sock.disconnect();
+ return null;
break;
default:
return name;
@@ -60,6 +62,10 @@
var obj = JSON.parse(data);
if (nickname === null) {
var tmp = getNickname();
+ if (tmp !== null) {
+ nickname = tmp;
+ rv = sock.send(JSON.stringify({ nickname: nickname }));
+ }
// rv = sock.send(JSON.stringify({ nickname: name }));
}
// ts.textContent = obj.timestamp;

0 comments on commit d1c86ad

Please sign in to comment.