Merge pull request #2 from LogMull/main

Replaced QR code API call
This commit is contained in:
Tobias L. Maier 2024-01-22 10:51:42 +01:00 committed by GitHub
commit ccc93f6144
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -269,10 +269,8 @@
.toString()
.padStart(leadingZerosInt + 1, "0");
let text = this.prefix + paddedNumber;
// See https://developers.google.com/chart/infographics/docs/qr_codes
let qrCodeUrl = `https://chart.googleapis.com/chart?cht=qr&chl=${encodeURIComponent(
text
)}&chs=300x300&chld=L|0`;
// See https://goqr.me/api/doc/create-qr-code/
let qrCodeUrl = `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(text)}`;
this.labels.push({ qrCodeUrl, text });
}