build: compile dist for sitemap, favicon, and graceful shutdown changes
All checks were successful
Deploy to Production / Deploy to Server (push) Successful in 1m12s
All checks were successful
Deploy to Production / Deploy to Server (push) Successful in 1m12s
This commit is contained in:
parent
d7b0a0eaa6
commit
5b7e343139
2 changed files with 47 additions and 7 deletions
2
dist/services/browser.js
vendored
2
dist/services/browser.js
vendored
|
|
@ -196,6 +196,7 @@ export async function closeBrowser() {
|
|||
export async function renderPdf(html, options = {}) {
|
||||
const { page, instance } = await acquirePage();
|
||||
try {
|
||||
await page.setJavaScriptEnabled(false);
|
||||
const result = await Promise.race([
|
||||
(async () => {
|
||||
await page.setContent(html, { waitUntil: "domcontentloaded", timeout: 15_000 });
|
||||
|
|
@ -222,6 +223,7 @@ export async function renderPdf(html, options = {}) {
|
|||
export async function renderUrlPdf(url, options = {}) {
|
||||
const { page, instance } = await acquirePage();
|
||||
try {
|
||||
await page.setJavaScriptEnabled(false);
|
||||
const result = await Promise.race([
|
||||
(async () => {
|
||||
await page.goto(url, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue