mirror of
https://github.com/tmaier/asn-qr-code-label-generator.git
synced 2026-03-14 16:43:31 +00:00
Use encodeURIComponent for API call as suggested.
This commit is contained in:
parent
a0c7b1c37f
commit
37c6ea8675
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@
|
||||||
.padStart(leadingZerosInt + 1, "0");
|
.padStart(leadingZerosInt + 1, "0");
|
||||||
let text = this.prefix + paddedNumber;
|
let text = this.prefix + paddedNumber;
|
||||||
// See https://goqr.me/api/doc/create-qr-code/
|
// See https://goqr.me/api/doc/create-qr-code/
|
||||||
let qrCodeUrl = `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${text}`;
|
let qrCodeUrl = `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(text)}`;
|
||||||
|
|
||||||
this.labels.push({ qrCodeUrl, text });
|
this.labels.push({ qrCodeUrl, text });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue