Skip to content

Commit 21bf1ff

Browse files
authored
PDF: Use sent timeout (#628)
* PDF: Use sent timeout * fix unit * apply review feedback * fix
1 parent 497f9cb commit 21bf1ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/browser/browser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ export class Browser {
381381
});
382382
}
383383

384+
const timeoutMs = options.timeout * 1000;
384385
return page.pdf({
385386
...getPDFOptionsFromURL(options.url),
386387
margin: {
@@ -391,6 +392,7 @@ export class Browser {
391392
},
392393
path: options.filePath,
393394
scale: 1 / scale,
395+
timeout: timeoutMs,
394396
});
395397
}
396398

0 commit comments

Comments
 (0)