From 0a498bae3a53357f5b793595b3c411183efd9536 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 4 Jan 2018 02:27:57 -0800 Subject: [PATCH] docs: update api.md This patch clarifies when the "disconnected" event is emitted and emphasizes the difference between Chromium and browser. References #1589. --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index 167b2d9d21184..989b2c78391f9 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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'