diff --git a/public/scripts/extensions/expressions/index.js b/public/scripts/extensions/expressions/index.js index dd1f9f170..1d6cafef7 100644 --- a/public/scripts/extensions/expressions/index.js +++ b/public/scripts/extensions/expressions/index.js @@ -566,6 +566,11 @@ async function moduleWorker() { offlineMode.css('display', 'none'); } + // Don't bother classifying if current char has no sprites and no default expressions are enabled + if (spriteCache[spriteFolderName].length === 0 && !extension_settings.expressions.showDefault) { + return; + } + // check if last message changed if ((lastCharacter === context.characterId || lastCharacter === context.groupId) && lastMessage === currentLastMessage.mes) { @@ -574,6 +579,7 @@ async function moduleWorker() { // API is busy if (inApiCall) { + console.debug('Classification API is busy'); return; } diff --git a/public/scripts/extensions/expressions/style.css b/public/scripts/extensions/expressions/style.css index 27ed3839e..a110cacdb 100644 --- a/public/scripts/extensions/expressions/style.css +++ b/public/scripts/extensions/expressions/style.css @@ -49,6 +49,7 @@ overflow: hidden; resize: both; display: flex; + justify-content: center; } #no_chat_expressions {