mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-06 21:55:57 -04:00
Optimize syntax highlighting
This commit is contained in:
parent
66a75c899a
commit
3d676cd50f
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ function isElementVisibleOnScreen(element) {
|
|||
}
|
||||
|
||||
function doSyntaxHighlighting() {
|
||||
const messageBodies = document.querySelectorAll(".message-body");
|
||||
const messageBodies = document.getElementById("chat").querySelectorAll(".message-body");
|
||||
|
||||
if (messageBodies.length > 0) {
|
||||
observer.disconnect();
|
||||
|
|
Loading…
Add table
Reference in a new issue