Fix "continue" as a slash command

This commit is contained in:
Cohee
2023-07-02 23:59:33 +03:00
parent 16e8c7a3c8
commit 6d33e44519
2 changed files with 6 additions and 3 deletions

View File

@ -117,7 +117,9 @@ const NARRATOR_NAME_DEFAULT = 'System';
const COMMENT_NAME_DEFAULT = 'Note';
function continueChatCallback() {
$('#option_continue').trigger('click');
// Prevent infinite recursion
$('#send_textarea').val('');
$('#option_continue').trigger('click', { fromSlashCommand: true });
}
function syncCallback() {