Replaced QR code API call

Previous API was deprecated (see https://developers.google.com/chart/infographics/docs/qr_codes) and is being turned off for random intervals (see https://groups.google.com/g/google-visualization-api/c/Pzzya6ed14g?pli=1). Replaced with a new API to generate QR Codes
This commit is contained in:
LogMull 2024-01-14 14:23:08 -05:00 committed by GitHub
parent eb1d4fb197
commit a0c7b1c37f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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=${text}`;
this.labels.push({ qrCodeUrl, text });
}