]> git.r.bdr.sh - rbdr/junction/blobdiff - extension/content_script.js
Build with Babel
[rbdr/junction] / extension / content_script.js
index a9d713d74150aa9208533f8c24beaab4e1bb4e56..741e1c4a88df1b03e1ca4c348d910adc866b193e 100644 (file)
@@ -19,8 +19,9 @@
       try {
         const mediaStream = await navigator.mediaDevices.getUserMedia({ audio: true });
 
-        internals.socket = io(socketUrl);
+        internals.socket = io(internals.kSocketUrl);
 
+        console.log('Connecting to server');
         internals.socket.on('connect', function() {
 
           console.log("Connected to signaling server");
@@ -47,6 +48,7 @@
           console.log(`There are now ${internals.peers} participants`);
         });
 
+        console.log('Done!');
         internals.createAudioElement(data.tada);
       }
       catch (err) {