We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc61e66 commit ad0dc50Copy full SHA for ad0dc50
index.js
@@ -9,8 +9,8 @@ app.use(async ctx => {
9
const browser = await puppeteer.launch()
10
const page = await browser.newPage()
11
try {
12
- await page.setContent(html)
13
await page.setViewport({width: +width, height: 50})
+ await page.setContent(html)
14
await page.screenshot({path, fullPage: true})
15
await browser.close()
16
0 commit comments