Skip to content

Commit

Permalink
Fix large pdf generation #3
Browse files Browse the repository at this point in the history
  • Loading branch information
clementmas committed Nov 29, 2023
2 parents 4b27009 + 8e740d4 commit 3cea090
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/browser.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ const callChrome = async pup => {
await page.waitForSelector(request.options.waitForSelector, (request.options.waitForSelectorOptions ? request.options.waitForSelectorOptions : undefined));
}

console.log(await getOutput(request, page));
const output = await getOutput(request, page);

if (!request.options.path) {
console.log(output);
}

if (remoteInstance && page) {
await page.close();
Expand Down

0 comments on commit 3cea090

Please sign in to comment.