Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #14 from mattnull/master

URL fragment issue
  • Loading branch information...
commit 8ef0dce2a6b49c097c2fb86ad6940ce6b274fd4c 2 parents 5864d2b + 654f9e2
David Peter sarenji authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 example/index.html
6 example/index.html
View
@@ -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...");
Please sign in to comment.
Something went wrong with that request. Please try again.