Skip to content

WindowManagerConfig

Defined in: main/WindowManager.ts:72

optional allowedOrigins: string[]

Defined in: main/WindowManager.ts:92

Allowed origins for parent renderers. Restricts which WebContents (by their main-frame URL’s origin) may call this library’s IPC.

If unset, all parent renderers with setupForWindow() called are allowed (a dev warning is logged). Use ["*"] to explicitly allow all.

This validates the parent renderer’s origin (where you called setupForWindow). Iframe-within-renderer enforcement is separately handled by the generated IPC validator and is always main-frame-only.


optional debug: boolean

Defined in: main/WindowManager.ts:101

Log all IPC calls and events to the console. Default: false.


optional defaultWindowOptions: Partial<BrowserWindowConstructorOptions> | () => Partial<Electron.BrowserWindowConstructorOptions>

Defined in: main/WindowManager.ts:74

Default options applied to all windows. Can be a function for dynamic values (e.g., theme-aware backgroundColor).


optional devWarnings: boolean

Defined in: main/WindowManager.ts:79

Enable development warnings


optional maxPendingWindows: number

Defined in: main/WindowManager.ts:95

Maximum pending window registrations. Default: 100.


optional maxWindows: number

Defined in: main/WindowManager.ts:98

Maximum active windows. Default: 50.