Fix indentation of jitsi widget wrapper

This commit is contained in:
Travis Ralston 2019-03-15 20:25:11 -06:00
parent 005b471dc7
commit 43473f7d4d

View file

@ -56,28 +56,28 @@ export class JitsiWidgetWrapperComponent extends CapableWidget implements OnInit
} }
switch (request.action) { switch (request.action) {
case "audioToggle": case "audioToggle":
this.jitsiApiObj.executeCommand('toggleAudio'); this.jitsiApiObj.executeCommand('toggleAudio');
break; break;
case "audioMute": case "audioMute":
this.jitsiApiObj.isAudioMuted().then((muted) => { this.jitsiApiObj.isAudioMuted().then((muted) => {
// Toggle audio if Jitsi is not currently muted // Toggle audio if Jitsi is not currently muted
if (!muted) { if (!muted) {
this.jitsiApiObj.executeCommand('toggleAudio'); this.jitsiApiObj.executeCommand('toggleAudio');
} }
}); });
break; break;
case "audioUnmute": case "audioUnmute":
this.jitsiApiObj.isAudioMuted().then((muted) => { this.jitsiApiObj.isAudioMuted().then((muted) => {
// Toggle audio if Jitsi is currently muted // Toggle audio if Jitsi is currently muted
if (muted) { if (muted) {
this.jitsiApiObj.executeCommand('toggleAudio'); this.jitsiApiObj.executeCommand('toggleAudio');
} }
}); });
break; break;
default: default:
// Unknown command sent // Unknown command sent
return; return;
} }
ScalarWidgetApi.replyAcknowledge(request); ScalarWidgetApi.replyAcknowledge(request);