chore: update incorrect link for DeviceDescriptors (#5777)

This commit is contained in:
ɯλrv¬ 2020-04-30 09:14:12 +01:00 committed by GitHub
parent af2e45820f
commit a8908cf3e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
- `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.