From 31ba7cc2f8b083ede3f29a6868d045899806f3ae Mon Sep 17 00:00:00 2001 From: Sem Date: Fri, 21 Mar 2014 04:29:03 +0100 Subject: [PATCH] Added support for lightColor in SVG QR codes --- qrcode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/qrcode.js b/qrcode.js index 3385ef5..aa2d3bf 100644 --- a/qrcode.js +++ b/qrcode.js @@ -199,6 +199,7 @@ var QRCode; svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"); _el.appendChild(svg); + svg.appendChild(makeSVG("rect", {"fill": _htOption.colorLight, "width": "100%", "height": "100%"})); svg.appendChild(makeSVG("rect", {"fill": _htOption.colorDark, "width": "1", "height": "1", "id": "template"})); for (var row = 0; row < nCount; row++) {