Spaces:
Paused
Paused
nkw commited on
Update index.js
Browse files
index.js
CHANGED
|
@@ -34,7 +34,7 @@ async function MdtoPdf(md, type) {
|
|
| 34 |
format: type || "A4",
|
| 35 |
printBackground: true,
|
| 36 |
});
|
| 37 |
-
await
|
| 38 |
return pdfBuffer;
|
| 39 |
}
|
| 40 |
|
|
|
|
| 34 |
format: type || "A4",
|
| 35 |
printBackground: true,
|
| 36 |
});
|
| 37 |
+
await page.close();
|
| 38 |
return pdfBuffer;
|
| 39 |
}
|
| 40 |
|