Skip to content

Commit

Permalink
docs: update api.md
Browse files Browse the repository at this point in the history
This patch clarifies when the "disconnected" event is emitted
and emphasizes the difference between Chromium and browser.

References #1589.
  • Loading branch information
aslushnikov committed Jan 4, 2018
1 parent 24354a4 commit 0a498ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Expand Up @@ -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'
Expand Down

0 comments on commit 0a498ba

Please sign in to comment.