Skip to content

Commit

Permalink
docs(api.md): remove duplicate code from an example (#5072)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsemozhetbyt authored and mathiasbynens committed Oct 24, 2019
1 parent 1248a19 commit 8132b39
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docs/api.md
Expand Up @@ -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' },
Expand Down

0 comments on commit 8132b39

Please sign in to comment.