diff --git a/modules/API/API.js b/modules/API/API.js index 59e72d9a1..9ca01ef45 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) {