mjml EMail
This commit is contained in:
@@ -33,8 +33,9 @@ async function generatePdfFromHtml(html, options = {}) {
|
||||
}
|
||||
|
||||
const page = await browser.newPage();
|
||||
await page.setContent(html, { waitUntil: 'networkidle0', timeout: 60000 });
|
||||
|
||||
//await page.setContent(html, { waitUntil: 'networkidle0', timeout: 60000 });
|
||||
await page.setContent(html, { waitUntil: 'load', timeout: 5000 });
|
||||
|
||||
const pdf = await page.pdf({
|
||||
format,
|
||||
printBackground,
|
||||
|
||||
Reference in New Issue
Block a user