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