Fix in-context message highlight breaking Firefox gens

This commit is contained in:
SillyLossy
2023-05-03 01:44:55 +03:00
parent 0dee2559d1
commit b3801ee0e9

View File

@ -2217,7 +2217,7 @@ function setInContextMessages(lastmsg, type) {
lastmsg++;
}
$(`#chat .mes:nth-last-child(${lastmsg} of :not([is_system="true"])`).addClass('lastInContext');
$('#chat .mes:not([is_system="true"])').eq(-lastmsg).addClass('lastInContext');
}
// TODO: move to textgen-settings.js