mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(api): update emulateMediaType example (#5606)
This commit is contained in:
parent
bbdaf92116
commit
fefa8ca8a2
@ -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'});
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user