docs: update api.md
This patch clarifies when the "disconnected" event is emitted and emphasizes the difference between Chromium and browser. References #1589.
This commit is contained in:
parent
24354a4879
commit
0a498bae3a
@ -322,8 +322,8 @@ puppeteer.launch().then(async browser => {
|
||||
});
|
||||
```
|
||||
#### event: 'disconnected'
|
||||
Emitted when puppeteer gets disconnected from the browser instance. This might happen because one of the following:
|
||||
- browser closed or crashed
|
||||
Emitted when puppeteer gets disconnected from the Chromium instance. This might happen because one of the following:
|
||||
- Chromium is closed or crashed
|
||||
- `browser.disconnect` method was called
|
||||
|
||||
#### event: 'targetchanged'
|
||||
|
Loading…
Reference in New Issue
Block a user