Skip to content

Commit 26f33c1

Browse files
authored
Update puppeteer.ts
1 parent 2ebf4a6 commit 26f33c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/_lib/puppeteer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function getPage() {
1818
export async function getScreenshot(url, width, height) {
1919
const page = await getPage();
2020
await page.setViewport({ width: Number(width) || 1280, height: Number(height) || 720, deviceScaleFactor: 2 });
21-
await page.goto(url: url || './index.html');
21+
await page.goto(url || './index.html');
2222
await new Promise(r => setTimeout(r, 3000));
2323
const file = await page.screenshot();
2424
return file;

0 commit comments

Comments
 (0)