Skip to content

Commit 719836d

Browse files
committed
updated writeFile props
1 parent 5fda9aa commit 719836d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/node/demo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* NAME: demo.js
33
* AUTH: Brent Ely (https://github.com/gitbrent/)
4-
* DATE: 20210403
4+
* DATE: 20210502
55
* DESC: PptxGenJS feature demos for Node.js
66
* REQS: npm 4.x + `npm install pptxgenjs`
77
*
@@ -45,7 +45,7 @@ if (process.argv.length > 2) {
4545
slide.addShape(pptx.shapes.OVAL_CALLOUT, { x: 6, y: 2, w: 3, h: 2, fill: "00FF00", line: "000000", lineSize: 1 }); // Test shapes availablity
4646

4747
// EXAMPLE 1: Saves output file to the local directory where this process is running
48-
pptx.writeFile(exportName)
48+
pptx.writeFile({ fileName: exportName })
4949
.catch((err) => {
5050
throw new Error(err);
5151
})

0 commit comments

Comments
 (0)