ElectronBrowserWindow.loadFile method
ElectronBrowserWindow › loadFile
Unofficial
Loads a file into the window. Same aswebContents.loadFile. Signature:
loadFile(filePath: string, options?: ElectronBrowserWindowLoadFileOptions | undefined): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | string | The path to an HTML file relative to the root of the application. |
| options? | ElectronBrowserWindowLoadFileOptions | undefined | Options for loading the file. |
Returns: Promise<void> — A promise that resolves when the page has finished loading.