Moved pdf save location to pdfExports/

This commit is contained in:
2020-06-07 23:53:30 +02:00
committed by KevinMidboe
parent 6cfdbd6983
commit 4a1f51769f

View File

@@ -12,11 +12,12 @@ let browser = undefined;
if (config.debug == false)
console.log = () => {}
const pdfFilename = config['pdfFilename'] || 'telenor-downtime.pdf';
const dateString = new Date().getTime();
const pdfFilename = (config['pdfFilename'] || 'telenor-downtime') + `_${dateString}.pdf`;
const savePageToPDF = page => {
const pdfOptions = {
path: pdfFilename,
path: `pdfExports/${pdfFilename}`,
format: "A4",
printBackground: true,
displayHeaderFooter: true,