pass options to html2png
This commit is contained in:
parent
f6627672c9
commit
6876c5689e
2 changed files with 14 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue