From 2367692ea2ba6b37c72bf468dff279e2e7c0485b Mon Sep 17 00:00:00 2001 From: Philippe Ozil Date: Thu, 25 Apr 2024 09:43:30 +0200 Subject: [PATCH] fix: QR code generator (#110) --- src/main/default/lwc/qrCode/qrCode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/default/lwc/qrCode/qrCode.js b/src/main/default/lwc/qrCode/qrCode.js index fb42643..01e8faf 100644 --- a/src/main/default/lwc/qrCode/qrCode.js +++ b/src/main/default/lwc/qrCode/qrCode.js @@ -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)}`; } }