Skip to content

Commit

Permalink
without await in loop
Browse files Browse the repository at this point in the history
  • Loading branch information
laiso committed Aug 18, 2022
1 parent ea64803 commit 1468228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vrt/src/index.ts
Expand Up @@ -35,7 +35,7 @@ async function main() {
await fs.ensureDir(exportPath);

for (const viewport of viewportList) {
for (const page of pageList) {
pageList.forEach(async (page) => {
const url = new URL(page.path, baseUrl).href;
const buffer = await captureScreenshot({
url,
Expand Down

0 comments on commit 1468228

Please sign in to comment.