diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 2261d7ce19a47..e359a300342cd 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -1236,7 +1236,7 @@ Captures a snapshot of the page within `rect`. Omitting `rect` will capture the * `postData` ([UploadRawData[]](structures/upload-raw-data.md) | [UploadFile[]](structures/upload-file.md) | [UploadBlob[]](structures/upload-blob.md)) (optional) * `baseURLForDataURL` String (optional) - Base url (with trailing path separator) for files to be loaded by the data url. This is needed only if the specified `url` is a data url and needs to load other files. -Returns `Promise` - the promise will resolve when the page has finished loading +Returns `Promise` - 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)). @@ -1280,7 +1280,7 @@ win.loadURL('http://localhost:8000/post', { * `search` String (optional) - Passed to `url.format()`. * `hash` String (optional) - Passed to `url.format()`. -Returns `Promise` - the promise will resolve when the page has finished loading +Returns `Promise` - 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)). diff --git a/docs/api/web-contents.md b/docs/api/web-contents.md index 4bd00f118b944..9e84e40305fa7 100644 --- a/docs/api/web-contents.md +++ b/docs/api/web-contents.md @@ -697,7 +697,7 @@ Custom value can be returned by setting `event.returnValue`. * `postData` ([UploadRawData[]](structures/upload-raw-data.md) | [UploadFile[]](structures/upload-file.md) | [UploadBlob[]](structures/upload-blob.md)) (optional) * `baseURLForDataURL` String (optional) - Base url (with trailing path separator) for files to be loaded by the data url. This is needed only if the specified `url` is a data url and needs to load other files. -Returns `Promise` - the promise will resolve when the page has finished loading +Returns `Promise` - 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)). @@ -720,7 +720,7 @@ webContents.loadURL('https://github.com', options) * `search` String (optional) - Passed to `url.format()`. * `hash` String (optional) - Passed to `url.format()`. -Returns `Promise` - the promise will resolve when the page has finished loading +Returns `Promise` - 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)).