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) {
case "audioToggle":
this.jitsiApiObj.executeCommand('toggleAudio');
break;
case "audioMute":
this.jitsiApiObj.isAudioMuted().then((muted) => {
// Toggle audio if Jitsi is not currently muted
if (!muted) {
this.jitsiApiObj.executeCommand('toggleAudio');
}
});
break;
case "audioUnmute":
this.jitsiApiObj.isAudioMuted().then((muted) => {
// Toggle audio if Jitsi is currently muted
if (muted) {
this.jitsiApiObj.executeCommand('toggleAudio');
}
});
break;
default:
// Unknown command sent
return;
case "audioToggle":
this.jitsiApiObj.executeCommand('toggleAudio');
break;
case "audioMute":
this.jitsiApiObj.isAudioMuted().then((muted) => {
// Toggle audio if Jitsi is not currently muted
if (!muted) {
this.jitsiApiObj.executeCommand('toggleAudio');
}
});
break;
case "audioUnmute":
this.jitsiApiObj.isAudioMuted().then((muted) => {
// Toggle audio if Jitsi is currently muted
if (muted) {
this.jitsiApiObj.executeCommand('toggleAudio');
}
});
break;
default:
// Unknown command sent
return;
}
ScalarWidgetApi.replyAcknowledge(request);