doc: add await to browser.close in usage examples (#797)

browser.close returns a promise after f398e69, so it should be awaited.
This commit is contained in:
cohesively
2017-09-16 00:27:14 -04:00
committed by JoelEinbinder
parent e2cad568d6
commit aa58f25bc1
10 changed files with 24 additions and 24 deletions

View File

@@ -28,6 +28,6 @@ const browser = await puppeteer.launch({
});
const page = await browser.newPage();
await page.goto('https://google.com');
browser.close();
await browser.close();
})();