mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-10 00:50:43 +01:00
Fix sprites plugin console spam
This commit is contained in:
parent
25d818ecbd
commit
5fbb232d69
@ -567,7 +567,7 @@ async function moduleWorker() {
|
||||
}
|
||||
|
||||
// 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) {
|
||||
if ((!Array.isArray(spriteCache[spriteFolderName]) || spriteCache[spriteFolderName].length === 0) && !extension_settings.expressions.showDefault) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user