Skip to content

Commit 7018a49

Browse files
committed
Quieten some IDE warnings
1 parent 579650a commit 7018a49

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/vector/jitsi/index.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@ function joinConference() { // event handler bound in HTML
174174

175175
switchVisibleContainers();
176176

177-
// noinspection JSIgnoredPromiseFromCall
178-
if (widgetApi) widgetApi.setAlwaysOnScreen(true); // ignored promise because we don't care if it works
177+
if (widgetApi) {
178+
// ignored promise because we don't care if it works
179+
// noinspection JSIgnoredPromiseFromCall
180+
widgetApi.setAlwaysOnScreen(true);
181+
}
179182

180183
console.warn(
181184
"[Jitsi Widget] The next few errors about failing to parse URL parameters are fine if " +
@@ -204,8 +207,11 @@ function joinConference() { // event handler bound in HTML
204207
meetApi.on("readyToClose", () => {
205208
switchVisibleContainers();
206209

207-
// noinspection JSIgnoredPromiseFromCall
208-
if (widgetApi) widgetApi.setAlwaysOnScreen(false); // ignored promise because we don't care if it works
210+
if (widgetApi) {
211+
// ignored promise because we don't care if it works
212+
// noinspection JSIgnoredPromiseFromCall
213+
widgetApi.setAlwaysOnScreen(false);
214+
}
209215

210216
document.getElementById("jitsiContainer").innerHTML = "";
211217
});

0 commit comments

Comments
 (0)