Browse Source

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

master
hristoterezov 11 years ago
parent
commit
bcf4caaf00
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      app.js

+ 2
- 1
app.js View File

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

Loading…
Cancel
Save