Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #560 from enketo/fix/configurable-pdf-timeout
Browse files Browse the repository at this point in the history
Make pdf generation timeout configurable
  • Loading branch information
eyelidlessness committed Jun 27, 2023
2 parents e1fd0e6 + d51d59d commit bb53d58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async function get(url, options = {}) {
},
scale: options.scale,
printBackground: true,
timeout,
});
} catch (e) {
e.status = e.status || 400;
Expand Down

0 comments on commit bb53d58

Please sign in to comment.