pass options to html2png

This commit is contained in:
hazycora 2023-08-03 09:49:25 -05:00
parent f6627672c9
commit 6876c5689e
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E
2 changed files with 14 additions and 10 deletions

View file

@ -116,8 +116,8 @@ const renderOptions = {
]
}
export default async function (html) {
return html2png(html, css, renderOptions)
export default async function (html, options = {}) {
return html2png(html, css, { ...renderOptions, ...options })
}
export async function renderHtml(html) {