diff options
author | Christoph Settgast <csett86@web.de> | 2021-05-22 11:44:10 +0200 |
---|---|---|
committer | Дамян Минков <damencho@jitsi.org> | 2021-06-11 10:14:00 -0500 |
commit | 9afadd917232406d9789c4417e6c8d2667aaf5cb (patch) | |
tree | 8aec7b9ecacc9991ba2b0ed7531d2ac2173f3b6a | |
parent | bad5d067c563b7a60322563cc53235d452c6ff2c (diff) |
fix(mac): remove wifi stats as they cause hangs every 10 seconds
The getWiFiStats causes screen freezes every 10 seconds for 2-4 seconds,
thus temporarily remove them on mac.
Closes: #595
-rw-r--r-- | app/features/conference/components/Conference.js | 6 | ||||
-rw-r--r-- | app/preload/preload.js | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/app/features/conference/components/Conference.js b/app/features/conference/components/Conference.js index bd0fc22..82b184d 100644 --- a/app/features/conference/components/Conference.js +++ b/app/features/conference/components/Conference.js @@ -266,7 +266,11 @@ class Conference extends Component<Props, State> { setupAlwaysOnTopRender(this._api); } - setupWiFiStats(iframe); + // Disable WiFiStats on mac due to jitsi-meet-electron#585 + if (window.jitsiNodeAPI.platform !== 'darwin') { + setupWiFiStats(iframe); + } + setupPowerMonitorRender(this._api); } diff --git a/app/preload/preload.js b/app/preload/preload.js index ccc65cc..e8d8020 100644 --- a/app/preload/preload.js +++ b/app/preload/preload.js @@ -1,3 +1,5 @@ +/* global process */ + const createElectronStorage = require('redux-persist-electron-storage'); const { ipcRenderer, remote } = require('electron'); const os = require('os'); @@ -11,6 +13,7 @@ window.jitsiNodeAPI = { createElectronStorage, osUserInfo: os.userInfo, openExternalLink, + platform: process.platform, jitsiMeetElectronUtils, getLocale: remote.app.getLocale, ipc: { |