Fix sprites plugin console spam

This commit is contained in:
Cohee 2023-09-21 21:15:05 +03:00
parent 25d818ecbd
commit 5fbb232d69
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}