Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(iframe_api): toggleScreenSharing command

hristoterezovdc4313598035
diff --git a/modules/API/API.js b/modules/API/API.js
index 59e72d9a17..9ca01ef45e 100644
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -50,7 +50,8 @@ function initCommands() {
"toggle-film-strip": APP.UI.toggleFilmStrip,
"toggle-chat": APP.UI.toggleChat,
"toggle-contact-list": APP.UI.toggleContactList,
- "toggle-share-screen": APP.conference.toggleScreenSharing,
+ "toggle-share-screen":
+ APP.conference.toggleScreenSharing.bind(APP.conference),
"video-hangup": () => APP.conference.hangup()
};
Object.keys(commands).forEach(function (key) {