Fix class set condition

This commit is contained in:
Cohee
2025-02-02 18:02:23 +02:00
parent 4e74fd0467
commit 900c0caffa

View File

@ -3266,9 +3266,9 @@ class StreamingProcessor {
if (this.messageReasoningDom instanceof HTMLElement) {
const formattedReasoning = messageFormatting(this.reasoning, '', false, false, messageId, {}, true);
this.messageReasoningDom.innerHTML = formattedReasoning;
if (this.reasoning) {
this.messageDom.classList.add('reasoning');
}
}
if (this.messageDom instanceof HTMLElement) {
this.messageDom.classList.add('reasoning');
}
}