]> git.r.bdr.sh - rbdr/junction/commitdiff
Build with Babel
authorRuben Beltran del Rio <redacted>
Sun, 27 Sep 2020 19:21:50 +0000 (21:21 +0200)
committerRuben Beltran del Rio <redacted>
Sun, 27 Sep 2020 19:21:50 +0000 (21:21 +0200)
extension/content_script.js
extension/package.json
extension/webpack.config.js

index a9d713d74150aa9208533f8c24beaab4e1bb4e56..741e1c4a88df1b03e1ca4c348d910adc866b193e 100644 (file)
@@ -19,8 +19,9 @@
       try {
         const mediaStream = await navigator.mediaDevices.getUserMedia({ audio: true });
 
       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");
         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(`There are now ${internals.peers} participants`);
         });
 
+        console.log('Done!');
         internals.createAudioElement(data.tada);
       }
       catch (err) {
         internals.createAudioElement(data.tada);
       }
       catch (err) {
index a59a35ceed1a80c15c9eec9eb88c6a430626c9ff..c6c71eb627e6aa1335134d4126134c95c94a1740 100644 (file)
@@ -10,6 +10,7 @@
   "author": "",
   "license": "ISC",
   "devDependencies": {
   "author": "",
   "license": "ISC",
   "devDependencies": {
+    "@babel/core": "^7.11.6",
     "@babel/preset-env": "^7.11.5",
     "babel-cli": "^6.26.0",
     "babel-core": "^6.26.3",
     "@babel/preset-env": "^7.11.5",
     "babel-cli": "^6.26.0",
     "babel-core": "^6.26.3",
index 524d4544465e972016067ef66cd9854f6dc52205..543a8ccba654610ac1b8de4b2663850a0ffbe893 100644 (file)
@@ -13,7 +13,7 @@ const config = {
         rules : [
             // JavaScript/JSX Files
             {
         rules : [
             // JavaScript/JSX Files
             {
-                test: /\.jsx$/,
+                test: /\.js$/,
                 exclude: /node_modules/,
                 use: ['babel-loader'],
             },
                 exclude: /node_modules/,
                 use: ['babel-loader'],
             },