docs(api.md): remove duplicate code from an example (#5072)
This commit is contained in:
parent
1248a19135
commit
8132b39a6c
@ -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' },
|
||||
|
Loading…
Reference in New Issue
Block a user