1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Fix browser screen share

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-02-08 15:48:30 +01:00
parent 0a81bb3fdc
commit 5c52f5f579

View File

@@ -372,7 +372,7 @@ export class MatrixCall extends EventEmitter {
this.localVideoElement = localVideoElement;
this.remoteVideoElement = remoteVideoElement;
if (window.electron.getDesktopCapturerSources) {
if (window.electron?.getDesktopCapturerSources) {
// We have access to getDesktopCapturerSources()
logger.debug("Electron getDesktopCapturerSources() is available...");
try {