Create polished demo videos without editing skills. Mac/Windows/Linux
fix(sources): gracefully handle desktopCapturer.getSources failure
webadderall4f33e6d5091a
diff --git a/electron/ipc/handlers.ts b/electron/ipc/handlers.tsindex b5f71633..d9cbe35e 100644--- a/electron/ipc/handlers.ts+++ b/electron/ipc/handlers.ts@@ -2815,6 +2815,9 @@ export function registerIpcHandlers(? await desktopCapturer.getSources({...opts,types: electronTypes,+ }).catch((error) => {+ console.warn('desktopCapturer.getSources failed (screen recording permission may be missing):', error)+ return []}): []const ownWindowNames = new Set(