mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 14:17:09 -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() {
|
function doSyntaxHighlighting() {
|
||||||
const messageBodies = document.querySelectorAll(".message-body");
|
const messageBodies = document.getElementById("chat").querySelectorAll(".message-body");
|
||||||
|
|
||||||
if (messageBodies.length > 0) {
|
if (messageBodies.length > 0) {
|
||||||
observer.disconnect();
|
observer.disconnect();
|
||||||
|
|
Loading…
Add table
Reference in a new issue