From 2916a73f4c8e2506887822481d9f4c3d1ff241a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Thu, 8 Apr 2021 11:01:17 +0200 Subject: [PATCH] Make selectDesktopCapturerSource optional --- src/webrtc/call.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 1a270c5ca..16e1fca1e 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -362,7 +362,7 @@ export class MatrixCall extends EventEmitter { * only works in Google Chrome and Firefox >= 44. * @throws If you have not specified a listener for 'error' events. */ - async placeScreenSharingCall(selectDesktopCapturerSource: () => Promise) { + async placeScreenSharingCall(selectDesktopCapturerSource?: () => Promise) { logger.debug("placeScreenSharingCall"); this.checkForErrorListener(); try {