Skip to content

Commit 9482068

Browse files
committed
autoColor bug fixed
autoColor bug fixed
1 parent 43c8f01 commit 9482068

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* NodeJS QRCode generator. Can save image or svg to file, get standard base64 image data url text or get SVG serialized text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.(Running without DOM on server side)
55
*
6-
* Version 4.4.1
6+
* Version 4.4.3
77
*
88
* @author [ [email protected] ]
99
*
@@ -1246,15 +1246,15 @@ Drawing.prototype.draw = function(oQRCode) {
12461246
// dColor = _htOption.timing_H || _htOption.timing || _htOption.colorDark;
12471247
if (_htOption.autoColor) {
12481248
dColor = _htOption.timing_H || _htOption.timing || _htOption.autoColorDark;
1249-
lColor = _htOption.timing_H || _htOption.timing || _htOption.autoColorLight;
1249+
lColor = _htOption.autoColorLight;
12501250
} else {
12511251
dColor = _htOption.timing_H || _htOption.timing || _htOption.colorDark;
12521252
}
12531253
} else if (col == 6) {
12541254
// dColor = _htOption.timing_V || _htOption.timing || _htOption.colorDark;
12551255
if (_htOption.autoColor) {
12561256
dColor = _htOption.timing_V || _htOption.timing || _htOption.autoColorDark;
1257-
lColor = _htOption.timing_V || _htOption.timing || _htOption.autoColorLight;
1257+
lColor = _htOption.autoColorLight;
12581258
} else {
12591259
dColor = _htOption.timing_V || _htOption.timing ||
12601260
_htOption.colorDark;

0 commit comments

Comments
 (0)