docs(api): update emulateMediaType example (#5606)

This commit is contained in:
Joshua H 2020-04-08 10:17:49 +02:00 committed by GitHub
parent bbdaf92116
commit fefa8ca8a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1682,7 +1682,7 @@ Page is guaranteed to have a main frame which persists during navigations.
```js
// Generates a PDF with 'screen' media type.
await page.emulateMedia('screen');
await page.emulateMediaType('screen');
await page.pdf({path: 'page.pdf'});
```