From f218efbeb27bbfb3aae318000156a16036126ba6 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Wed, 29 Jun 2022 17:08:47 +0200 Subject: [PATCH] set error correction level to low for qr codes --- frontend/src/app/components/qrcode/qrcode.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/qrcode/qrcode.component.ts b/frontend/src/app/components/qrcode/qrcode.component.ts index 1a0c7604d..30c8a8362 100644 --- a/frontend/src/app/components/qrcode/qrcode.component.ts +++ b/frontend/src/app/components/qrcode/qrcode.component.ts @@ -24,7 +24,7 @@ export class QrcodeComponent implements AfterViewInit { return; } const opts: QRCode.QRCodeRenderersOptions = { - errorCorrectionLevel: 'H', + errorCorrectionLevel: 'L', margin: 0, color: { dark: '#000', @@ -38,7 +38,11 @@ export class QrcodeComponent implements AfterViewInit { } const address = this.data; - if (this.data.indexOf('bc1') === 0 || this.data.indexOf('tb1') === 0) { + if ( + this.data.indexOf('bc1') === 0 || + this.data.indexOf('tb1') === 0 || + this.data.indexOf('bcrt1') === 0 + ) { address.toUpperCase(); }