fix(core): update

This commit is contained in:
2022-09-13 18:26:14 +02:00
parent db4965c8f5
commit 60993fc005
5 changed files with 6 additions and 2 deletions

View File

@@ -84,6 +84,7 @@ export class SmartPdf {
const response = await page.goto(`http://localhost:3210/${pdfCandidate.pdfId}`, {
waitUntil: 'networkidle2',
});
await plugins.smartdelay.delayFor(1000);
const headers = response.headers();
if (headers['pdf-id'] !== pdfCandidate.pdfId) {
console.log('Error! Headers do not match. For security reasons no pdf is being emitted!');