Skip to content

The agent that grows with you

fix(desktop): narrow screenshot failures in Electron typechecks

brooklyn!79c0ce394c03
diff --git a/apps/desktop/electron/command-screenshot.ts b/apps/desktop/electron/command-screenshot.ts
index 788a29922e4..6a2088ff12b 100644
--- a/apps/desktop/electron/command-screenshot.ts
+++ b/apps/desktop/electron/command-screenshot.ts
@@ -178,7 +178,7 @@ export function installCommandScreenshot({ rendererUrl }: { rendererUrl: string
})
handle('capture', async (event, requestId) => {
const result = await capture.take(event.sender.id, requestId)
- if (!result.ok && result.reason === 'screen-permission') {
+ if (result.ok === false && result.reason === 'screen-permission') {
publish()
}