From: Ruben Beltran del Rio Date: Sun, 27 Sep 2020 19:21:50 +0000 (+0200) Subject: Build with Babel X-Git-Url: https://git.r.bdr.sh/rbdr/junction/commitdiff_plain/refs/heads/rbdr-content-script?ds=inline Build with Babel --- diff --git a/extension/content_script.js b/extension/content_script.js index a9d713d..741e1c4 100644 --- a/extension/content_script.js +++ b/extension/content_script.js @@ -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) { diff --git a/extension/package.json b/extension/package.json index a59a35c..c6c71eb 100644 --- a/extension/package.json +++ b/extension/package.json @@ -10,6 +10,7 @@ "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", diff --git a/extension/webpack.config.js b/extension/webpack.config.js index 524d454..543a8cc 100644 --- a/extension/webpack.config.js +++ b/extension/webpack.config.js @@ -13,7 +13,7 @@ const config = { rules : [ // JavaScript/JSX Files { - test: /\.jsx$/, + test: /\.js$/, exclude: /node_modules/, use: ['babel-loader'], },