Skip to content

Commit

Permalink
Minor verbiage update
Browse files Browse the repository at this point in the history
  • Loading branch information
GitBrent authored and GitBrent committed Jul 18, 2017
1 parent 6e826ab commit 06a1e2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ pptx.save( 'Node_Demo', function(filename){ console.log('Created: '+filename); }
pptx.save( 'Node_Demo', saveCallback );
// D: Use a filename of "http" or "https" to receive the powerpoint binary data in your callback
// Used for streaming the presentation file via http. See the `nodejs-demo.js` file for a working example.
pptx.save( 'http', steamCallback );
pptx.save( 'http', streamCallback );
```

Saving multiple Presentations:
Expand Down
4 changes: 2 additions & 2 deletions examples/nodejs-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function saveCallback(filename) {
}

// EX: Callback that receives the PPT binary data - use this to stream file
function steamCallback(data) {
function streamCallback(data) {
var strFilename = "Node-Presenation-Streamed.pptx";

app.get('/', function(req, res) {
Expand Down Expand Up @@ -74,7 +74,7 @@ runEveryTest();
pptx.save( 'Node_Demo_Callback_'+getTimestamp(), saveCallback );

// D: or use callback with 'http' in filename to get content back instead of writing a file - use this for streaming
//pptx.save( 'https://github.com/gitbrent/PptxGenJS/', steamCallback );
//pptx.save( 'https://github.com/gitbrent/PptxGenJS/', streamCallback );

// **NOTE** If you continue to use the `pptx` variable, new Slides will be added to the existing set
// Create a new variable or reset `pptx` for an empty Presenation
Expand Down

0 comments on commit 06a1e2a

Please sign in to comment.