mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix color without dom
This commit is contained in:
@ -84,6 +84,7 @@ export class QuickReplySet {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
updateColor() {
|
updateColor() {
|
||||||
|
if (!this.dom) return;
|
||||||
if (this.color && this.color != 'transparent') {
|
if (this.color && this.color != 'transparent') {
|
||||||
this.dom.style.setProperty('--qr--color', this.color);
|
this.dom.style.setProperty('--qr--color', this.color);
|
||||||
this.dom.classList.add('qr--color');
|
this.dom.classList.add('qr--color');
|
||||||
|
Reference in New Issue
Block a user