diff options
author | matthewsotoudeh <matthewsot@outlook.com> | 2017-02-05 12:35:45 -0800 |
---|---|---|
committer | matthewsotoudeh <matthewsot@outlook.com> | 2017-02-05 12:35:45 -0800 |
commit | d180d3bd0cc51ccf433ba10834ad3d05973a728e (patch) | |
tree | 9683e32633bfa0aedbb52e3902fa9450c8ca68ed | |
parent | 6488baa6ba3167acad5fd6cdc830990c894af348 (diff) |
fixed a small bug
-rw-r--r-- | content/scripts/connect.js | 4 | ||||
-rw-r--r-- | index.html | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/content/scripts/connect.js b/content/scripts/connect.js index 06d7263..aaf153e 100644 --- a/content/scripts/connect.js +++ b/content/scripts/connect.js @@ -3,10 +3,12 @@ window.peer = new Peer(peerId, { host: 'mas-peerserver.herokuapp.com', port: 443 window.attendees = [ ]; window.clients = [ ]; +window.connectedAlready = false; peer.on('open', function (id) { + if (window.connectedAlready) return; + window.connectedAlready = true; window.switchWedgeContent("#landing-overlay"); - return; }); peer.on('disconnected', function () { console.log("Disconnected, trying to reconnect..."); @@ -10,6 +10,7 @@ </div> <div id="landing-overlay" class="overlay"> <h1>Welcome to Scribe!</h1> + Note: this works best on Google Chrome. <button id="create-meeting">I'm starting a new meeting</button> <button id="join-meeting">I have a meeting code</button> </div> |