fix: capturePage not resolving with hidden windows (#28076)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2021-03-09 13:13:33 -08:00
committed by GitHub
parent 9e723746e9
commit e6e1372ea7
3 changed files with 29 additions and 1 deletions

View File

@@ -1371,7 +1371,7 @@ Returns `Boolean` - Whether the window's document has been edited.
Returns `Promise<NativeImage>` - Resolves with a [NativeImage](native-image.md)
Captures a snapshot of the page within `rect`. Omitting `rect` will capture the whole visible page.
Captures a snapshot of the page within `rect`. Omitting `rect` will capture the whole visible page. If the page is not visible, `rect` may be empty.
#### `win.loadURL(url[, options])`