X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/4a191e8036581893bf5f4cfb284770d1bfe9a807..3f2e36eabf1494ac60a3cf533d3db86d25a6cc39:/extension/content_script.js diff --git a/extension/content_script.js b/extension/content_script.js index 721176e..c344bd9 100644 --- a/extension/content_script.js +++ b/extension/content_script.js @@ -50,9 +50,10 @@ const internals = { console.debug("disconnected from signaling server"); }); - socket.on("addPeer", ({ peerId }) => { + socket.on("addPeer", ({ peerId, shouldCreateOffer }) => { addPeer({ peerId, + shouldCreateOffer, mediaStream, onOffer: (data) => socket.emit("relayOffer", data), socket