Replaces the auto generated address string with string from the room name generator.
This commit is contained in:
parent
2d8707626b
commit
bcf4caaf00
3
app.js
3
app.js
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue