aboutsummaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2020-09-27 21:21:50 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2020-09-27 21:21:50 +0200
commit93fe1aee43a79a23d4c418c230fde0e451259279 (patch)
treeae7f83bd01d1783cb7951c94c020cb22361aa1b0 /extension
parenteaca9f28abdf3e3ac9571498fb6c39ca2986ee77 (diff)
Build with Babelrbdr-content-script
Diffstat (limited to 'extension')
-rw-r--r--extension/content_script.js4
-rw-r--r--extension/package.json1
-rw-r--r--extension/webpack.config.js2
3 files changed, 5 insertions, 2 deletions
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'],
},