Skip to content

Commit

Permalink
Add waitUntil parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoscalco committed Dec 16, 2020
1 parent 9fe963f commit 2542652
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ function print(flags) {
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(`http://127.0.0.1:8181/${input}`);
await page.goto(
`http://127.0.0.1:8181/${input}`,
{waitUntil: 'networkidle0'},
);
await page.pdf({
path: output,
width,
Expand Down

0 comments on commit 2542652

Please sign in to comment.