Permalink
Browse files

Add random usernames

  • Loading branch information...
boppreh committed Apr 12, 2014
1 parent b136cdb commit 53e33ba61afc546b6cbbd3ec8f3aa1a8231c468c
Showing with 4 additions and 0 deletions.
  1. +4 −0 static/chat.html
View
@@ -28,6 +28,10 @@ <h1>Example Chat with Server-Sent-Events</h1>
username = null,
eventSource = null;
if (usernameElement.value === 'Anon') {
usernameElement.value += Math.round(Math.random() * 1000);
}
updateSubscription();
function updateSubscription() {

0 comments on commit 53e33ba

Please sign in to comment.