mirror of
https://github.com/tmaier/asn-qr-code-label-generator.git
synced 2026-03-14 16:43:31 +00:00
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:
parent
eb1d4fb197
commit
a0c7b1c37f
1 changed files with 2 additions and 4 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue