mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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);
|
const computedStyles = getComputedStyle(this);
|
||||||
|
|
||||||
QRCode.toCanvas(canvas, this.data, {
|
QRCode.toCanvas(canvas, this.data, {
|
||||||
errorCorrectionLevel: this.errorCorrectionLevel,
|
errorCorrectionLevel:
|
||||||
|
this.errorCorrectionLevel || (this.centerImage ? "Q" : "M"),
|
||||||
width: this.width,
|
width: this.width,
|
||||||
scale: this.scale,
|
scale: this.scale,
|
||||||
margin: this.margin,
|
margin: this.margin,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user