fix(desktop): satisfy Electron permission type check

This commit is contained in:
brooklyn!
2026-09-11 05:33:54 -07:00
parent 244a42f636
commit e6aa2e9fe4
+1 -1
View File
@@ -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)
)