From 82dd53f166b820213f5e8bcc0512aa7df7604d7e Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Sun, 14 Jul 2024 17:02:24 -0400 Subject: [PATCH] fix color without dom --- public/scripts/extensions/quick-reply/src/QuickReplySet.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/scripts/extensions/quick-reply/src/QuickReplySet.js b/public/scripts/extensions/quick-reply/src/QuickReplySet.js index 3a9defc4a..0e1fb7839 100644 --- a/public/scripts/extensions/quick-reply/src/QuickReplySet.js +++ b/public/scripts/extensions/quick-reply/src/QuickReplySet.js @@ -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');