mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
78941e562c
Prior to this patch, the example results in `browser.close()` being executed before the file is generated/written to disk. One needs to listen for the `end` event on the `ReadableStream` before closing the browser, otherwise an exception is raised: UnhandledPromiseRejectionWarning: Error: Protocol error (IO.read): Target closed |
||
---|---|---|
.. | ||
assets | ||
api.md | ||
issue_template.md | ||
troubleshooting.md |