We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afceb1c + 2eabfcc commit 7f15c1aCopy full SHA for 7f15c1a
index.js
@@ -1,3 +1,4 @@
1
+
2
/**
3
* EasyQRCodeJS-NodeJS
4
*
@@ -1186,6 +1187,9 @@ Drawing.prototype.draw = function(oQRCode) {
1186
1187
1188
drawQrcode.call(t, oQRCode);
1189
}
1190
+ bgImg.onerror = function(e){
1191
+ t.reject(e);
1192
+ }
1193
bgImg.src = _htOption.backgroundImage;
1194
// DoSomething
1195
} else {
@@ -1795,4 +1799,4 @@ QRCode.prototype.toSVGText = function() {
1795
1799
*/
1796
1800
QRCode.CorrectLevel = QRErrorCorrectLevel;
1797
1801
1798
-module.exports = QRCode;
1802
+module.exports = QRCode;
0 commit comments