Fix class set condition

900c0caffa947ea0b7a06e12affb73873ae6cd92

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -3Ignore whitespace
public/script.js+3 -3
@@ -3266,9 +3266,9 @@ class StreamingProcessor {
32663266 if (this.messageReasoningDom instanceof HTMLElement) {
32673267 const formattedReasoning = messageFormatting(this.reasoning, '', false, false, messageId, {}, true);
32683268 this.messageReasoningDom.innerHTML = formattedReasoning;
3269- if (this.reasoning) {
3269+ }
3270- this.messageDom.classList.add('reasoning');
3270+ if (this.messageDom instanceof HTMLElement) {
3271- }
3271+ this.messageDom.classList.add('reasoning');
32723272 }
32733273 }
32743274