Fixes the issue with the wrong value of the invite dialog.(reported by Timmi)

This commit is contained in:
hristoterezov 2014-08-28 12:17:00 +03:00
parent c7a5f5cb9b
commit 2f8efe7a6a
1 changed files with 3 additions and 2 deletions

5
app.js
View File

@ -190,10 +190,11 @@ function doJoin() {
if (path.length > 1) {
roomnode = path.substr(1).toLowerCase();
} else {
roomnode = RoomNameGenerator.generateRoomWithoutSeparator(3);
var word = RoomNameGenerator.generateRoomWithoutSeparator(3);
roomnode = word.toLowerCase();
window.history.pushState('VideoChat',
'Room: ' + roomnode, window.location.pathname + roomnode);
'Room: ' + word, window.location.pathname + word);
}
}