validateWindow
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / main/window/windowValidation / validateWindow
Function: validateWindow()
validateWindow(
win:any,context?:string):boolean
Defined in: main/window/windowValidation.js:30
Validates that a BrowserWindow is usable and logs a structured warning when it is not.
Parametersβ
winβ
any
Target BrowserWindow instance.
context?β
string = "unknown operation"
Description of the operation requiring the window.
Returnsβ
boolean
True when the window can be used.