Skip to content

Commit

Permalink
fix: QR code generator (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Apr 25, 2024
1 parent f06b75b commit 2367692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/default/lwc/qrCode/qrCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default class QrCode extends LightningElement {
if (!this.url) {
return null;
}
return `https://chart.googleapis.com/chart?chs=${this.size}x${
return `https://api.qrserver.com/v1/create-qr-code/?size=${this.size}x${
this.size
}&cht=qr&chl=${encodeURIComponent(this.url)}`;
}&data=${encodeURIComponent(this.url)}`;
}
}

0 comments on commit 2367692

Please sign in to comment.