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

Null-check screenshareConstraints

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-03-03 15:38:49 +01:00
parent 427500220d
commit f0b2d2fe4d

View File

@@ -381,6 +381,7 @@ export class MatrixCall extends EventEmitter {
try { try {
const screenshareConstraints = await getScreenshareContraints(selectDesktopCapturerSource); const screenshareConstraints = await getScreenshareContraints(selectDesktopCapturerSource);
if (!screenshareConstraints) return;
if (window.electron?.getDesktopCapturerSources) { if (window.electron?.getDesktopCapturerSources) {
// We are using Electron // We are using Electron
logger.debug("Getting screen stream using getUserMedia()..."); logger.debug("Getting screen stream using getUserMedia()...");