|
@@ -196,8 +196,10 @@
|
|
|
|
|
|
|
|
|
var room = window.location.hash.slice(1);
|
|
|
-
|
|
|
- rtc.connect("ws:" + window.location.href.substring(window.location.protocol.length), room);
|
|
|
+ var url = "ws:"+window.location.href.substring(window.location.protocol.length);
|
|
|
+ var hash = url.indexOf('#');
|
|
|
+ url = (hash !== -1) ? url.substring(0, hash) : url;
|
|
|
+ rtc.connect(url, room);
|
|
|
|
|
|
rtc.on('add remote stream', function(stream, socketId) {
|
|
|
console.log("ADDING REMOTE STREAM...");
|