Skip to content

Commit

Permalink
solving puppeter
Browse files Browse the repository at this point in the history
  • Loading branch information
zdni committed Aug 12, 2024
1 parent 194b75a commit 00f249e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/PDFController.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ class PDFController {
</html>
`;

const browser = await puppeteer.launch({ executablePath: executablePath(), });
const browser = await puppeteer.launch({
executablePath: executablePath(),
ignoreDefaultArgs: ['--disable-extensions'],
});
const page = await browser.newPage();

await page.setContent(html);
Expand Down

0 comments on commit 00f249e

Please sign in to comment.