document the loadURL promise pre-attached rejection handler (#18043)
This commit is contained in:
parent
e736d04e7f
commit
493af7f84c
1 changed files with 1 additions and 1 deletions
|
@ -794,7 +794,7 @@ Custom value can be returned by setting `event.returnValue`.
|
|||
Returns `Promise<void>` - the promise will resolve when the page has finished loading
|
||||
(see [`did-finish-load`](web-contents.md#event-did-finish-load)), and rejects
|
||||
if the page fails to load (see
|
||||
[`did-fail-load`](web-contents.md#event-did-fail-load)).
|
||||
[`did-fail-load`](web-contents.md#event-did-fail-load)). A noop rejection handler is already attached, which avoids unhandled rejection errors.
|
||||
|
||||
Loads the `url` in the window. The `url` must contain the protocol prefix,
|
||||
e.g. the `http://` or `file://`. If the load should bypass http cache then
|
||||
|
|
Loading…
Reference in a new issue