From 9aa7f80e82b0d7c916b5804843ac443b9cd723d7 Mon Sep 17 00:00:00 2001 From: "Gubin, Maksim" Date: Fri, 23 Sep 2016 14:04:19 +0300 Subject: [PATCH] hot fix api.executeCommand --- modules/API/API.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/API/API.js b/modules/API/API.js index 91c4ca622..098774249 100644 --- a/modules/API/API.js +++ b/modules/API/API.js @@ -45,8 +45,8 @@ let enabled = false; function initCommands() { commands = { "display-name": APP.UI.inputDisplayNameHandler, - "toggle-audio": APP.conference.toggleAudioMuted, - "toggle-video": APP.conference.toggleVideoMuted, + "toggle-audio": APP.conference.toggleAudioMuted.bind(APP.conference), + "toggle-video": APP.conference.toggleVideoMuted.bind(APP.conference), "toggle-film-strip": APP.UI.toggleFilmStrip, "toggle-chat": APP.UI.toggleChat, "toggle-contact-list": APP.UI.toggleContactList,