docs(api.md): remove duplicate code from an example (#5072)

This commit is contained in:
Vse Mozhet Byt 2019-10-24 12:21:38 +03:00 committed by Mathias Bynens
parent 1248a19135
commit 8132b39a6c

View File

@ -1306,12 +1306,6 @@ await page.evaluate(() => matchMedia('(prefers-reduced-motion: reduce)').matches
await page.evaluate(() => matchMedia('(prefers-color-scheme: no-preference)').matches));
// → false
await page.emulateMediaFeatures([{ name: 'prefers-reduced-motion', value: 'reduce' }]);
await page.evaluate(() => matchMedia('(prefers-reduced-motion: reduce)').matches));
// → true
await page.evaluate(() => matchMedia('(prefers-color-scheme: no-preference)').matches));
// → false
await page.emulateMediaFeatures([
{ name: 'prefers-color-scheme', value: 'dark' },
{ name: 'prefers-reduced-motion', value: 'reduce' },