Skip to content

The agent that grows with you

fix(desktop): satisfy Electron permission type check

brooklyn!e6aa2e9fe451
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index 1da6d948a2d..13761505c0c 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -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)
)