Change to URL handling. Join by /roomname.
This commit is contained in:
+2
-1
@@ -74,7 +74,8 @@ function run()
|
|||||||
|
|
||||||
const peerName = randomString({ length: 8 }).toLowerCase();
|
const peerName = randomString({ length: 8 }).toLowerCase();
|
||||||
const urlParser = new UrlParse(window.location.href, true);
|
const urlParser = new UrlParse(window.location.href, true);
|
||||||
let roomId = urlParser.query.roomId;
|
let roomId = (urlParser.pathname).substr(1)
|
||||||
|
? (urlParser.pathname).substr(1) : urlParser.query.roomId;
|
||||||
const produce = urlParser.query.produce !== 'false';
|
const produce = urlParser.query.produce !== 'false';
|
||||||
let displayName = urlParser.query.displayName;
|
let displayName = urlParser.query.displayName;
|
||||||
const isSipEndpoint = urlParser.query.sipEndpoint === 'true';
|
const isSipEndpoint = urlParser.query.sipEndpoint === 'true';
|
||||||
|
|||||||
Reference in New Issue
Block a user