Permalink
Browse files

Fix entering rooms without a nick

  • Loading branch information...
1 parent 57e0df8 commit 8487a7effaa4e19d56b8d419939c0f87ac951941 Pablo committed Nov 19, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/client.js
View
@@ -21,7 +21,8 @@ $(function () {
config.nick = n[1];
} else {
config.nick = prompt("Choose a nickname for the chat:") || config.nick;
- window.location = (window.location + "&nick=" + config.nick).replace(/\/&/, "&");
+ console.log((window.location.href + "&nick=" + config.nick).replace(/\/&/, "?"));
+ window.location = (window.location.href + "&nick=" + config.nick).replace(/\/&/, "?");
}
// Start Talker client

0 comments on commit 8487a7e

Please sign in to comment.