Skip to content

Commit 0482ace

Browse files
Ujjwal SharmaUjjwal Sharma
authored andcommitted
prettier
1 parent f17d03d commit 0482ace

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

app/renderer/js/main.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -964,19 +964,19 @@ export class ServerManagerView {
964964
permission === "fullscreen"
965965
? true
966966
: webContentsId === null
967-
? origin === "null" && permission === "notifications"
968-
: (
969-
await Promise.all(
970-
this.tabs.map(async (tab) => {
971-
if (!(tab instanceof ServerTab)) return false;
972-
const webview = await tab.webview;
973-
return (
974-
webview.webContentsId === webContentsId &&
975-
webview.properties.hasPermission?.(origin, permission)
976-
);
977-
}),
978-
)
979-
).some(Boolean);
967+
? origin === "null" && permission === "notifications"
968+
: (
969+
await Promise.all(
970+
this.tabs.map(async (tab) => {
971+
if (!(tab instanceof ServerTab)) return false;
972+
const webview = await tab.webview;
973+
return (
974+
webview.webContentsId === webContentsId &&
975+
webview.properties.hasPermission?.(origin, permission)
976+
);
977+
}),
978+
)
979+
).some(Boolean);
980980
console.log(
981981
grant ? "Granted" : "Denied",
982982
"permissions request for",

0 commit comments

Comments
 (0)