pure-svg-code
pure-svg-code copied to clipboard
SVG viewBox property is missing
The viewBox property is missing on the svg element. Scaling (inline) svg results in a image which is cut off.
Line 798 qrcode/index.js
var svg = '<?xml version="1.0" standalone="yes"?>' + '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 ' + width + ' ' + height + '" width="' + width + '" height="' + height + '">';
I may do a pull request later if needed.