Skip to content

Commit b1609a5

Browse files
committed
autoColor bug fixed
autoColor bug fixed
1 parent 2ba58ac commit b1609a5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

QRCode.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* React Native QRCode generation component. Can generate standard QRCode image or base64 image data url text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.
55
*
6-
* Version 4.0.4
6+
* Version 4.0.5
77
*
88
* @author [ [email protected] ]
99
*
@@ -1196,15 +1196,15 @@ Drawing.prototype.draw = function(oQRCode) {
11961196
// dColor = _htOption.timing_H || _htOption.timing || _htOption.colorDark;
11971197
if (_htOption.autoColor) {
11981198
dColor = _htOption.timing_H || _htOption.timing || _htOption.autoColorDark;
1199-
lColor = _htOption.timing_H || _htOption.timing || _htOption.autoColorLight;
1199+
lColor = _htOption.autoColorLight;
12001200
} else {
12011201
dColor = _htOption.timing_H || _htOption.timing || _htOption.colorDark;
12021202
}
12031203
} else if (col == 6) {
12041204
// dColor = _htOption.timing_V || _htOption.timing || _htOption.colorDark;
12051205
if (_htOption.autoColor) {
12061206
dColor = _htOption.timing_V || _htOption.timing || _htOption.autoColorDark;
1207-
lColor = _htOption.timing_V || _htOption.timing || _htOption.autoColorLight;
1207+
lColor = _htOption.autoColorLight;
12081208
} else {
12091209
dColor = _htOption.timing_V || _htOption.timing ||
12101210
_htOption.colorDark;

0 commit comments

Comments
 (0)