Skip to content

Commit

Permalink
Add nosanbox arg, whoops!
Browse files Browse the repository at this point in the history
  • Loading branch information
gausie committed Nov 17, 2023
1 parent 5c553ab commit 0d6a69e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/svgConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ let converter: Converter | null = null;

export async function renderSvg(svg: string) {
if (converter === null) {
converter = svgToPng.createConverter({ puppeteer: { args: [] } });
converter = svgToPng.createConverter({
puppeteer: { args: ["--no-sandbox"] },
});

if (timeout !== null) clearTimeout(timeout);
timeout = setTimeout(() => {
Expand Down

0 comments on commit 0d6a69e

Please sign in to comment.