File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments