chore: update incorrect link for DeviceDescriptors (#5777)
This commit is contained in:
parent
af2e45820f
commit
a8908cf3e0
@ -1321,7 +1321,7 @@ const iPhone = puppeteer.devices['iPhone 6'];
|
|||||||
})();
|
})();
|
||||||
```
|
```
|
||||||
|
|
||||||
List of all available devices is available in the source code: [DeviceDescriptors.js](https://github.com/puppeteer/puppeteer/blob/master/lib/DeviceDescriptors.js).
|
List of all available devices is available in the source code: [src/DeviceDescriptors.ts](https://github.com/puppeteer/puppeteer/blob/master/src/DeviceDescriptors.ts).
|
||||||
|
|
||||||
#### page.emulateMedia(type)
|
#### page.emulateMedia(type)
|
||||||
- `type` <?[string]> Changes the CSS media type of the page. The only allowed values are `'screen'`, `'print'` and `null`. Passing `null` disables CSS media emulation.
|
- `type` <?[string]> Changes the CSS media type of the page. The only allowed values are `'screen'`, `'print'` and `null`. Passing `null` disables CSS media emulation.
|
||||||
|
Loading…
Reference in New Issue
Block a user