You've already forked matrix-js-sdk
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:
@@ -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()...");
|
||||||
|
|||||||
Reference in New Issue
Block a user