summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatthewsotoudeh <matthewsot@outlook.com>2017-02-05 12:35:45 -0800
committermatthewsotoudeh <matthewsot@outlook.com>2017-02-05 12:35:45 -0800
commitd180d3bd0cc51ccf433ba10834ad3d05973a728e (patch)
tree9683e32633bfa0aedbb52e3902fa9450c8ca68ed
parent6488baa6ba3167acad5fd6cdc830990c894af348 (diff)
fixed a small bug
-rw-r--r--content/scripts/connect.js4
-rw-r--r--index.html1
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...");
diff --git a/index.html b/index.html
index e16eb61..45236d2 100644
--- a/index.html
+++ b/index.html
@@ -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>
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback