mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
[doc] add missing quote in api.md example
This commit is contained in:
parent
91785d97f3
commit
245391cb54
@ -940,7 +940,7 @@ const {Browser} = require('.');
|
||||
const browser = new Browser();
|
||||
|
||||
browser.newPage().then(async page => {
|
||||
const watchDog = page.waitForFunction('window.innerWidth < 100);
|
||||
const watchDog = page.waitForFunction('window.innerWidth < 100');
|
||||
page.setViewport({width: 50, height: 50});
|
||||
await watchDog;
|
||||
browser.close();
|
||||
|
Loading…
Reference in New Issue
Block a user