fix(desktop): satisfy Electron permission type check
This commit is contained in:
@@ -7438,7 +7438,7 @@ function installMediaPermissions() {
|
||||
session.defaultSession.setPermissionCheckHandler((_webContents, permission) => {
|
||||
return (
|
||||
permission === 'media' ||
|
||||
permission === 'automatic-fullscreen' ||
|
||||
(permission as string) === 'automatic-fullscreen' ||
|
||||
permission === ('audioCapture' as any) /* todo: is this needed? */ ||
|
||||
permission === ('videoCapture' as any)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user