Skip to content

Commit

Permalink
Merge pull request #828 from morfey13/patch-1
Browse files Browse the repository at this point in the history
use `const` instead `var` in example from README.markdown
  • Loading branch information
Stuk authored May 23, 2022
2 parents 1e7c2d7 + b35d22d commit ae5dc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ lovely and simple API.
See https://stuk.github.io/jszip for all the documentation.

```javascript
var zip = new JSZip();
const zip = new JSZip();

zip.file("Hello.txt", "Hello World\n");

var img = zip.folder("images");
const img = zip.folder("images");
img.file("smile.gif", imgData, {base64: true});

zip.generateAsync({type:"blob"}).then(function(content) {
Expand Down

0 comments on commit ae5dc14

Please sign in to comment.