Skip to content

Commit ae5dc14

Browse files
authored
Merge pull request #828 from morfey13/patch-1
use `const` instead `var` in example from README.markdown
2 parents 1e7c2d7 + b35d22d commit ae5dc14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ lovely and simple API.
77
See https://stuk.github.io/jszip for all the documentation.
88

99
```javascript
10-
var zip = new JSZip();
10+
const zip = new JSZip();
1111

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

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

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

0 commit comments

Comments
 (0)