Skip to content

Commit d78d9ef

Browse files
committed
Simplify render await
1 parent 5593a7f commit d78d9ef

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/index.js

-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ router.post(
5151
await page.goto(body.url, {
5252
waitUntil: "domcontentloaded",
5353
});
54-
await page.waitForFunction(() => {
55-
// eslint-disable-next-line
56-
return document.fonts.ready;
57-
});
5854
await page.waitForTimeout(3000); // Safe addition for any extra JS
5955
const screen = await page.screenshot();
6056
await context.close();

0 commit comments

Comments
 (0)