Skip to content

Commit

Permalink
Merge pull request #587 from zetoken/master
Browse files Browse the repository at this point in the history
Fixed "Write QR Code to SVG" example failed to save the file
  • Loading branch information
werthdavid authored Apr 29, 2024
2 parents cf4b897 + 93d8abd commit e8fa80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/qr-svg-writer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h1 class="title">Write QR Code to SVG</h1>
})

document.getElementById('saveButton').addEventListener('click', () => {
const svgData = (new XMLSerializer()).serializeToString(svgElement)
const svgData = (new XMLSerializer()).serializeToString(document.getElementById('result'))
const blob = new Blob([svgData])
saveAs(blob, 'zxing-qrcode-example.svg')
})
Expand Down

0 comments on commit e8fa80b

Please sign in to comment.