Skip to main content

Function: validateWindow()

function validateWindow(
win?: WindowUsabilityCandidate | null,
context?: string
): boolean;

Defined in: main/window/windowValidation.ts:52

Validates that a BrowserWindow is usable and logs a structured warning when it is not.

Parameters​

win?​

| WindowUsabilityCandidate | null

context?​

string = "unknown operation"

Description of the operation requiring the window.

Returns​

boolean

True when the window can be used.