mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-08 07:32:34 +01:00
Removed old code
This commit is contained in:
parent
708b065300
commit
791b18d78e
@ -45,8 +45,6 @@ let lastCharacter = undefined;
|
|||||||
let lastMessage = null;
|
let lastMessage = null;
|
||||||
let spriteCache = {};
|
let spriteCache = {};
|
||||||
let inApiCall = false;
|
let inApiCall = false;
|
||||||
let previousSrc = null;
|
|
||||||
|
|
||||||
|
|
||||||
function isVisualNovelMode() {
|
function isVisualNovelMode() {
|
||||||
return Boolean(!isMobile() && power_user.waifuMode && getContext().groupId);
|
return Boolean(!isMobile() && power_user.waifuMode && getContext().groupId);
|
||||||
@ -477,7 +475,6 @@ function handleImageChange() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (extension_settings.expressions.live2d) {
|
if (extension_settings.expressions.live2d) {
|
||||||
previousSrc = imgElement.src;
|
|
||||||
// Method get IP of endpoint
|
// Method get IP of endpoint
|
||||||
const live2dResultFeedSrc = `${getApiUrl()}/api/live2d/result_feed`;
|
const live2dResultFeedSrc = `${getApiUrl()}/api/live2d/result_feed`;
|
||||||
$('#expression-holder').css({ display: '' });
|
$('#expression-holder').css({ display: '' });
|
||||||
@ -517,7 +514,6 @@ async function moduleWorker() {
|
|||||||
if (context.groupId !== lastCharacter && context.characterId !== lastCharacter) {
|
if (context.groupId !== lastCharacter && context.characterId !== lastCharacter) {
|
||||||
removeExpression();
|
removeExpression();
|
||||||
spriteCache = {};
|
spriteCache = {};
|
||||||
previousSrc = null;
|
|
||||||
|
|
||||||
//clear expression
|
//clear expression
|
||||||
let imgElement = document.getElementById('expression-image');
|
let imgElement = document.getElementById('expression-image');
|
||||||
|
Loading…
Reference in New Issue
Block a user