loadFile

fun loadFile(filePath: String, options: LoadFileOptions = definedExternally): Promise<Void>(source)

the promise will resolve when the page has finished loading (see did-finish-load), and rejects if the page fails to load (see did-fail-load).

Same as webContents.loadFile, filePath should be a path to an HTML file relative to the root of your application. See the webContents docs for more information.