Skip to content

Commit 004d2b3

Browse files
committed
update readme
1 parent fadf9be commit 004d2b3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/images/demo-premium.png

154 KB
Loading

readme.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,9 @@ var qrcode = new QRCode(options);
297297
// Save PNG Images to file
298298
qrcode.saveImage({
299299
path: 'q.png' // file path
300-
});
300+
}).then(data=>{
301+
console.log("`q-premium1.png` has been Created!");
302+
});
301303
```
302304

303305
- **toDataURL()**
@@ -307,7 +309,9 @@ var qrcode = new QRCode(options);
307309
qrcode.toDataURL().then(data=>{
308310
console.info('======QRCode PNG DataURL======')
309311
console.info(data)
310-
});
312+
}).then(data=>{
313+
console.log("`q-premium1.png` Base64 image has been generated.");
314+
});
311315
```
312316

313317

0 commit comments

Comments
 (0)