]> git.r.bdr.sh - rbdr/junction/blobdiff - extension/content_script.js
Only send offer on one side
[rbdr/junction] / extension / content_script.js
index 721176e8330e19ea21168656053634ff4457c3d2..c344bd945ca94e23ef5f954460f201cc98b6a61f 100644 (file)
@@ -50,9 +50,10 @@ const internals = {
         console.debug("disconnected from signaling server");
       });
 
         console.debug("disconnected from signaling server");
       });
 
-      socket.on("addPeer", ({ peerId }) => {
+      socket.on("addPeer", ({ peerId, shouldCreateOffer }) => {
         addPeer({
           peerId,
         addPeer({
           peerId,
+          shouldCreateOffer,
           mediaStream,
           onOffer: (data) => socket.emit("relayOffer", data),
           socket
           mediaStream,
           onOffer: (data) => socket.emit("relayOffer", data),
           socket