Merge branch 'SillyTavern:staging' into staging

This commit is contained in:
pyrater
2023-08-04 06:43:17 +09:00
committed by GitHub
15 changed files with 342 additions and 57 deletions

View File

@@ -449,7 +449,7 @@ async function loadLiveChar() {
function handleImageChange() {
const imgElement = document.querySelector('img#expression-image.expression');
if (!imgElement) {
console.log("Cannot find addExpressionImage()");
return;
@@ -459,6 +459,7 @@ function handleImageChange() {
previousSrc = imgElement.src;
// Method get IP of endpoint
const live2dResultFeedSrc = `${getApiUrl()}/api/live2d/result_feed`;
$('#expression-holder').css({ display: '' });
if (imgElement.src !== live2dResultFeedSrc) {
const expressionImageElement = document.querySelector('.expression_list_image');
@@ -922,7 +923,7 @@ async function setExpression(character, expression, force) {
if (imgElement) {
console.log("setting value");
imgElement.src = getApiUrl() + '/api/live2d/result_feed';
}
}
}
}