fix color without dom

This commit is contained in:
LenAnderson
2024-07-14 17:02:24 -04:00
parent e256e55268
commit 82dd53f166

View File

@ -84,6 +84,7 @@ export class QuickReplySet {
});
}
updateColor() {
if (!this.dom) return;
if (this.color && this.color != 'transparent') {
this.dom.style.setProperty('--qr--color', this.color);
this.dom.classList.add('qr--color');