Skip to content

Commit

Permalink
Run Format
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatter committed Nov 19, 2024
1 parent 58230b3 commit 7f742fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ export async function render(actualMhtml, viewport, fullpage, style) {
await fs.writeFile(indexFile, actualMhtml);
try {
await renderer.start();
return await renderer.screenshot(`file://${indexFile}`, viewport, fullpage, style);
return await renderer.screenshot(
`file://${indexFile}`,
viewport,
fullpage,
style,
);
} finally {
await fs.rm(indexFile);
await fs.rmdir(workspaceDirectory);
Expand Down

0 comments on commit 7f742fe

Please sign in to comment.