aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2020-05-20 10:12:56 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2020-05-20 21:21:54 +0200
commit1f789ec4e700c146dd6bb8c0a7127b62bb9b27ba (patch)
tree7a992b052e7c54df15e89f2850a3ab28c614dc4a
parentd2f49288f13bfd9590d7968909b096353e87231b (diff)
Update to Electron 9 and enable E2EE
Electron 9 ships with Chrome 83 which means we have access to E2EE by enabling experimental web platform features.
-rw-r--r--main.js4
-rw-r--r--package-lock.json24
-rw-r--r--package.json2
3 files changed, 17 insertions, 13 deletions
diff --git a/main.js b/main.js
index fff0029..bb3dc9c 100644
--- a/main.js
+++ b/main.js
@@ -23,6 +23,9 @@ const config = require('./app/features/config');
// We need this because of https://github.com/electron/electron/issues/18214
app.commandLine.appendSwitch('disable-site-isolation-trials');
+// Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580
+app.allowRendererProcessReuse = false;
+
autoUpdater.logger = require('electron-log');
autoUpdater.logger.transports.file.level = 'info';
@@ -153,6 +156,7 @@ function createJitsiMeetWindow() {
minHeight: 600,
show: false,
webPreferences: {
+ experimentalFeatures: true, // Insertable streams, for E2EE.
nativeWindowOpen: true,
nodeIntegration: false,
preload: path.resolve(basePath, './build/preload.js')
diff --git a/package-lock.json b/package-lock.json
index 51dc5d5..a2f7d3d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3128,9 +3128,9 @@
}
},
"@electron/get": {
- "version": "1.9.0",
- "resolved": "https://registry.npmjs.org/@electron/get/-/get-1.9.0.tgz",
- "integrity": "sha512-OBIKtF6ttIJotDXe4KJMUyTBO4xMii+mFjlA8R4CORuD4HvCUaCK3lPjhdTRCvuEv6gzWNbAvd9DNBv0v780lw==",
+ "version": "1.12.2",
+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-1.12.2.tgz",
+ "integrity": "sha512-vAuHUbfvBQpYTJ5wB7uVIDq5c/Ry0fiTBMs7lnEYAo/qXXppIVcWdfBr57u6eRnKdVso7KSiH6p/LbQAG6Izrg==",
"dev": true,
"requires": {
"debug": "^4.1.1",
@@ -5875,9 +5875,9 @@
"dev": true
},
"electron": {
- "version": "8.2.1",
- "resolved": "https://registry.npmjs.org/electron/-/electron-8.2.1.tgz",
- "integrity": "sha512-+1PispFqjyKj3VeOPbEKEl6LYxPW41OxHgh9CGN8KeGygsKDHSZuuG9rYc+b9NeeaAl+gnV9VO2JOe7BIzXyOg==",
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/electron/-/electron-9.0.0.tgz",
+ "integrity": "sha512-JsaSQNPh+XDYkLj8APtVKTtvpb86KIG57W5OOss4TNrn8L3isC9LsCITwfnVmGIXHhvX6oY/weCtN5hAAytjVg==",
"dev": true,
"requires": {
"@electron/get": "^1.0.1",
@@ -7529,16 +7529,16 @@
},
"dependencies": {
"core-js": {
- "version": "3.6.4",
- "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.4.tgz",
- "integrity": "sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw==",
+ "version": "3.6.5",
+ "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.5.tgz",
+ "integrity": "sha512-vZVEEwZoIsI+vPEuoF9Iqf5H7/M3eeQqWlQnYa8FSKKePuYTf5MWnxb5SDAzCa60b3JBRS5g9b+Dq7b1y/RCrA==",
"dev": true,
"optional": true
},
"semver": {
- "version": "7.2.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.2.1.tgz",
- "integrity": "sha512-aHhm1pD02jXXkyIpq25qBZjr3CQgg8KST8uX0OWXch3xE6jw+1bfbWnCjzMwojsTquroUmKFHNzU6x26mEiRxw==",
+ "version": "7.3.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
+ "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==",
"dev": true,
"optional": true
}
diff --git a/package.json b/package.json
index 5331adc..ec1e58a 100644
--- a/package.json
+++ b/package.json
@@ -131,7 +131,7 @@
"concurrently": "5.1.0",
"css-loader": "3.5.0",
"devtron": "1.4.0",
- "electron": "8.2.1",
+ "electron": "9.0.0",
"electron-builder": "22.3.6",
"electron-react-devtools": "0.5.3",
"eslint": "6.5.1",