Replaces the auto generated address string with string from the room name generator.

This commit is contained in:
hristoterezov 2014-08-27 12:25:50 +03:00
parent 2d8707626b
commit bcf4caaf00
1 changed files with 2 additions and 1 deletions

3
app.js
View File

@ -190,7 +190,8 @@ function doJoin() {
if (path.length > 1) {
roomnode = path.substr(1).toLowerCase();
} else {
roomnode = Math.random().toString(36).substr(2, 20);
roomnode = RoomNameGenerator.generateRoomWithoutSeparator(3);
window.history.pushState('VideoChat',
'Room: ' + roomnode, window.location.pathname + roomnode);
}