Set QR ec level

This commit is contained in:
Skylar Ittner 2021-01-22 13:21:22 -07:00
parent 0e73bf7358
commit 13915df0d3

View File

@ -22,6 +22,7 @@ function getAddressQRCode() {
scale: 5, // 3x scaling factor scale: 5, // 3x scaling factor
includetext: false, // Show human-readable text includetext: false, // Show human-readable text
textxalign: 'center', // Always good to set this textxalign: 'center', // Always good to set this
eclevel: 'M'
}); });
document.getElementById("addresscode-barcode").src = canvas.toDataURL('image/png'); document.getElementById("addresscode-barcode").src = canvas.toDataURL('image/png');