Prevent applying broken images

This commit is contained in:
SillyLossy
2023-03-27 18:54:30 +03:00
parent 43ade01424
commit 0e97d26645

View File

@ -218,7 +218,10 @@ function onClickExpressionImage() {
const context = getContext();
const expression = $(this).attr('id').replace('.png', '');
setExpression(context.name2, expression, true);
if ($(this).find('.failure').length === 0) {
setExpression(context.name2, expression, true);
}
}
(function () {