Skip to content

Commit c00aa82

Browse files
committed
Remove wait for idle network because of icons
1 parent bcd06a0 commit c00aa82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xp-archive/server/src/services/PdfService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class PdfService {
132132

133133
await page.setViewport({ width: widthActual, height: 1024, deviceScaleFactor: 1 });
134134
await page.emulateMediaType('screen');
135-
await page.setContent(html, { waitUntil: ['load', 'networkidle0'] });
135+
await page.setContent(html);
136136
await page.waitForFunction(
137137
'document.querySelectorAll("link[href^=\'https://cdn.nav.no\']") !== null'
138138
);

0 commit comments

Comments
 (0)