Bläddra i källkod

hot fix api.executeCommand

j8
Gubin, Maksim 8 år sedan
förälder
incheckning
9aa7f80e82
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      modules/API/API.js

+ 2
- 2
modules/API/API.js Visa fil

@@ -45,8 +45,8 @@ let enabled = false;
45 45
 function initCommands() {
46 46
     commands = {
47 47
         "display-name": APP.UI.inputDisplayNameHandler,
48
-        "toggle-audio": APP.conference.toggleAudioMuted,
49
-        "toggle-video": APP.conference.toggleVideoMuted,
48
+        "toggle-audio": APP.conference.toggleAudioMuted.bind(APP.conference),
49
+        "toggle-video": APP.conference.toggleVideoMuted.bind(APP.conference),
50 50
         "toggle-film-strip": APP.UI.toggleFilmStrip,
51 51
         "toggle-chat": APP.UI.toggleChat,
52 52
         "toggle-contact-list": APP.UI.toggleContactList,

Laddar…
Avbryt
Spara