Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanBUK committed Feb 6, 2011
1 parent 0a3d082 commit d1c86ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/index.html
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit d1c86ad

Please sign in to comment.