File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -961,20 +961,22 @@ export class ServerManagerView {
961961 permissionCallbackId : number ,
962962 ) => {
963963 const grant =
964- webContentsId === null
965- ? origin === "null" && permission === "notifications"
966- : (
967- await Promise . all (
968- this . tabs . map ( async ( tab ) => {
969- if ( ! ( tab instanceof ServerTab ) ) return false ;
970- const webview = await tab . webview ;
971- return (
972- webview . webContentsId === webContentsId &&
973- webview . properties . hasPermission ?.( origin , permission )
974- ) ;
975- } ) ,
976- )
977- ) . some ( Boolean ) ;
964+ permission === "fullscreen"
965+ ? true
966+ : 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 ) ;
978980 console . log (
979981 grant ? "Granted" : "Denied" ,
980982 "permissions request for" ,
You can’t perform that action at this time.
0 commit comments