Skip to content

Commit

Permalink
[docs] a mistake in allowed values of page.evaluateMedia (puppeteer…
Browse files Browse the repository at this point in the history
  • Loading branch information
ls6 authored and aslushnikov committed Aug 28, 2017
1 parent f9abc8e commit 59fc757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ puppeteer.launch().then(async browser => {
List of all available devices is available in the source code: [DeviceDescriptors.js](https://github.com/GoogleChrome/puppeteer/blob/master/DeviceDescriptors.js).

#### page.emulateMedia(mediaType)
- `mediaType` <[string]> Changes the CSS media type of the page. The only allowed values are `'screen'`, `'media'` and `null`. Passing `null` disables media emulation.
- `mediaType` <[string]> Changes the CSS media type of the page. The only allowed values are `'screen'`, `'print'` and `null`. Passing `null` disables media emulation.
- returns: <[Promise]>

#### page.evaluate(pageFunction, ...args)
Expand Down

0 comments on commit 59fc757

Please sign in to comment.