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