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,8 +218,11 @@ function onClickExpressionImage() {
const context = getContext(); const context = getContext();
const expression = $(this).attr('id').replace('.png', ''); const expression = $(this).attr('id').replace('.png', '');
if ($(this).find('.failure').length === 0) {
setExpression(context.name2, expression, true); setExpression(context.name2, expression, true);
} }
}
(function () { (function () {
function addExpressionImage() { function addExpressionImage() {