mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Prevent applying broken images
This commit is contained in:
@ -218,7 +218,10 @@ function onClickExpressionImage() {
|
|||||||
|
|
||||||
const context = getContext();
|
const context = getContext();
|
||||||
const expression = $(this).attr('id').replace('.png', '');
|
const expression = $(this).attr('id').replace('.png', '');
|
||||||
setExpression(context.name2, expression, true);
|
|
||||||
|
if ($(this).find('.failure').length === 0) {
|
||||||
|
setExpression(context.name2, expression, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
|
Reference in New Issue
Block a user