Merge pull request #1130 from Jack-Kingdom/main

Fix: wait for networkidle event to ensure image load
This commit is contained in:
Amruth Pillai
2022-12-16 14:43:43 +01:00
committed by GitHub

View File

@ -58,6 +58,7 @@ export class PrinterService implements OnModuleInit, OnModuleDestroy {
await page.goto(`${url}/${username}/${slug}/printer?secretKey=${secretKey}`);
await page.waitForSelector('html.wf-active');
await page.waitForLoadState("networkidle")
const pageFormat: PageConfig['format'] = await page.$$eval(
'[data-page]',