kopia lustrzana https://github.com/hughchen/qr_image
Remove padding
rodzic
e7f313c52a
commit
63cc654c78
10
index.js
10
index.js
|
@ -180,11 +180,11 @@ function makeCode() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Pad URL since we want more density
|
||||
maxLength = 40;
|
||||
if (url.length < maxLength) {
|
||||
url += "?/" + "0".repeat(maxLength - url.length);
|
||||
}
|
||||
// // Pad URL since we want more density
|
||||
// maxLength = 40;
|
||||
// if (url.length < maxLength) {
|
||||
// url += "?/" + "0".repeat(maxLength - url.length);
|
||||
// }
|
||||
|
||||
// Generate URL bits
|
||||
qrcode.makeCode(url);
|
||||
|
|
Ładowanie…
Reference in New Issue