aboutsummaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
authorcsett86 <csett86@web.de>2021-11-06 13:42:54 +0100
committerGitHub <noreply@github.com>2021-11-06 13:42:54 +0100
commitca21b040c4a8e7983276e29b662dedc77d519665 (patch)
tree5995a4b17276b167a87353664e59dca42723485f /main.js
parent935515d7ce71c76730280dd38b8cbd864a85bdd3 (diff)
Update jitsi-meet-electron-utils to electron 14+ compatible version (#655)
Replaced all remote module usages Updated robotjs to context-aware fork Updated node-gyp on windows to get it compiling again
Diffstat (limited to 'main.js')
-rw-r--r--main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.js b/main.js
index 933a84b..ec58514 100644
--- a/main.js
+++ b/main.js
@@ -14,6 +14,7 @@ const windowStateKeeper = require('electron-window-state');
const {
initPopupsConfigurationMain,
getPopupTarget,
+ RemoteControlMain,
setupAlwaysOnTopMain,
setupPowerMonitorMain,
setupScreenSharingMain
@@ -27,6 +28,8 @@ const { existsSync } = require('fs');
const showDevTools = Boolean(process.env.SHOW_DEV_TOOLS) || (process.argv.indexOf('--show-dev-tools') > -1);
+const ENABLE_REMOTE_CONTROL = false;
+
// We need this because of https://github.com/electron/electron/issues/18214
app.commandLine.appendSwitch('disable-site-isolation-trials');
@@ -232,6 +235,9 @@ function createJitsiMeetWindow() {
setupAlwaysOnTopMain(mainWindow);
setupPowerMonitorMain(mainWindow);
setupScreenSharingMain(mainWindow, config.default.appName, pkgJson.build.appId);
+ if (ENABLE_REMOTE_CONTROL) {
+ new RemoteControlMain(mainWindow); // eslint-disable-line no-new
+ }
mainWindow.webContents.on('new-window', (event, url, frameName) => {
const target = getPopupTarget(url, frameName);