Skip to content

Commit 549838f

Browse files
committed
Merge pull request #24 from sembrestels/background-svg
Added support for lightColor in SVG QR codes
2 parents 696776b + 31ba7cc commit 549838f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qrcode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ var QRCode;
199199
svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink");
200200
_el.appendChild(svg);
201201

202+
svg.appendChild(makeSVG("rect", {"fill": _htOption.colorLight, "width": "100%", "height": "100%"}));
202203
svg.appendChild(makeSVG("rect", {"fill": _htOption.colorDark, "width": "1", "height": "1", "id": "template"}));
203204

204205
for (var row = 0; row < nCount; row++) {

0 commit comments

Comments
 (0)