aboutsummaryrefslogtreecommitdiff
path: root/app/features/conference/components
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2022-03-21 13:49:39 +0100
committerSaúl Ibarra Corretgé <s@saghul.net>2022-03-21 14:41:23 +0100
commit180540facbb601c9e7f59db1d4c86696ce4fd01e (patch)
treee7a19cdc9a97c6a4945362f7aa5fc24e909d35b7 /app/features/conference/components
parent7ec0304a53f1e97a4f376ab31e14bb2b7ee688e4 (diff)
feat(preload) limit the exposed SDK API surface
Expose a single function that sets up everything on the renderer.
Diffstat (limited to 'app/features/conference/components')
-rw-r--r--app/features/conference/components/Conference.js34
1 files changed, 5 insertions, 29 deletions
diff --git a/app/features/conference/components/Conference.js b/app/features/conference/components/Conference.js
index 0a9f058..8df1968 100644
--- a/app/features/conference/components/Conference.js
+++ b/app/features/conference/components/Conference.js
@@ -234,35 +234,11 @@ class Conference extends Component<Props, State> {
}
);
- const { RemoteControl,
- setupScreenSharingRender,
- setupAlwaysOnTopRender,
- initPopupsConfigurationRender,
- setupWiFiStats,
- setupPowerMonitorRender
- } = window.jitsiNodeAPI.jitsiMeetElectronUtils;
-
- initPopupsConfigurationRender(this._api);
-
- const iframe = this._api.getIFrame();
-
- setupScreenSharingRender(this._api);
-
- if (ENABLE_REMOTE_CONTROL) {
- new RemoteControl(iframe); // eslint-disable-line no-new
- }
-
- // Allow window to be on top if enabled in settings
- if (this.props._alwaysOnTopWindowEnabled) {
- setupAlwaysOnTopRender(this._api);
- }
-
- // Disable WiFiStats on mac due to jitsi-meet-electron#585
- if (window.jitsiNodeAPI.platform !== 'darwin') {
- setupWiFiStats(iframe);
- }
-
- setupPowerMonitorRender(this._api);
+ // Setup Jitsi Meet Electron SDK on this renderer.
+ window.jitsiNodeAPI.setupRenderer(this._api, {
+ enableRemoteControl: ENABLE_REMOTE_CONTROL,
+ enableAlwaysOnTopWindow: this.props._alwaysOnTopWindowEnabled
+ });
}
/**