Skip to content

Commit

Permalink
Update to Electron 9 and enable E2EE
Browse files Browse the repository at this point in the history
Electron 9 ships with Chrome 83 which means we have access to E2EE by
enabling experimental web platform features.
  • Loading branch information
saghul committed May 20, 2020
1 parent d2f4928 commit 1f789ec
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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')
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1f789ec

Please sign in to comment.