Sponsor Lightning support.
This commit is contained in:
@@ -8,6 +8,7 @@ import * as QRCode from 'qrcode/build/qrcode.js';
|
||||
})
|
||||
export class QrcodeComponent implements AfterViewInit {
|
||||
@Input() data: string;
|
||||
@Input() size = 125;
|
||||
@ViewChild('canvas') canvas: ElementRef;
|
||||
|
||||
qrcodeObject: any;
|
||||
@@ -22,8 +23,8 @@ export class QrcodeComponent implements AfterViewInit {
|
||||
dark: '#000',
|
||||
light: '#fff'
|
||||
},
|
||||
width: 125,
|
||||
height: 125,
|
||||
width: this.size,
|
||||
height: this.size,
|
||||
};
|
||||
|
||||
if (!this.data) {
|
||||
|
||||
Reference in New Issue
Block a user