We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98810fc commit 716f84cCopy full SHA for 716f84c
apps/api/src/invoice.ts
@@ -11,7 +11,7 @@ const plugin = new Elysia()
11
let browser = await puppeteer.launch({ headless: true });
12
const page = await browser.newPage();
13
14
- await page.goto(`https://app.invoicelink.io/invoice?id=${id}&type=${type}&download=${download}`);
+ await page.goto(`https://app.invoicelink.io/invoice?id=${id}&type=${type}&download=${download}`,{ waitUntil: 'domcontentloaded' });
15
const pdf = await page.pdf({
16
format: 'A4',
17
printBackground: true
0 commit comments