mirror of
https://github.com/tmaier/asn-qr-code-label-generator.git
synced 2026-03-14 16:43:31 +00:00
commit
ccc93f6144
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=${encodeURIComponent(text)}`;
|
||||
|
||||
this.labels.push({ qrCodeUrl, text });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue