WindowManagerConfig
Defined in: main/WindowManager.ts:72
Properties
Section titled “Properties”allowedOrigins?
Section titled “allowedOrigins?”
optionalallowedOrigins: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.
debug?
Section titled “debug?”
optionaldebug:boolean
Defined in: main/WindowManager.ts:101
Log all IPC calls and events to the console. Default: false.
defaultWindowOptions?
Section titled “defaultWindowOptions?”
optionaldefaultWindowOptions: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).
devWarnings?
Section titled “devWarnings?”
optionaldevWarnings:boolean
Defined in: main/WindowManager.ts:79
Enable development warnings
maxPendingWindows?
Section titled “maxPendingWindows?”
optionalmaxPendingWindows:number
Defined in: main/WindowManager.ts:95
Maximum pending window registrations. Default: 100.
maxWindows?
Section titled “maxWindows?”
optionalmaxWindows:number
Defined in: main/WindowManager.ts:98
Maximum active windows. Default: 50.