mirror of
https://github.com/KevinMidboe/ISPDowntimeMonitor.git
synced 2025-10-29 09:40:12 +00:00
Moved pdf save location to pdfExports/
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user