mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Default to error correction Q when there is a center image (#19593)
default to error correction Q when there is a center image
This commit is contained in:
parent
462ac79890
commit
95920ba710
@ -67,7 +67,8 @@ export class HaQrCode extends LitElement {
|
||||
const computedStyles = getComputedStyle(this);
|
||||
|
||||
QRCode.toCanvas(canvas, this.data, {
|
||||
errorCorrectionLevel: this.errorCorrectionLevel,
|
||||
errorCorrectionLevel:
|
||||
this.errorCorrectionLevel || (this.centerImage ? "Q" : "M"),
|
||||
width: this.width,
|
||||
scale: this.scale,
|
||||
margin: this.margin,
|
||||
|
Loading…
x
Reference in New Issue
Block a user