Update metrics.mjs

This commit is contained in:
linguist
2021-01-02 12:38:07 +01:00
parent 39fbd28fb5
commit 5843e6c588

View File

@@ -180,7 +180,7 @@
}
/** Render svg */
async function svgresize(svg, {padding = 10, convert} = {}) {
async function svgresize(svg, {padding = 20, convert} = {}) {
//Instantiate browser if needed
if (!svgresize.browser) {
svgresize.browser = await puppeteer.launch({headless:true, executablePath:process.env.PUPPETEER_BROWSER_PATH, args:["--no-sandbox", "--disable-extensions", "--disable-setuid-sandbox", "--disable-dev-shm-usage"]})