mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 02:47:52 +01:00
SD: Change onChatChanged to async
This commit is contained in:
parent
bc6c598796
commit
d281749d63
@ -709,7 +709,7 @@ async function refinePrompt(prompt, isNegative) {
|
||||
return prompt;
|
||||
}
|
||||
|
||||
function onChatChanged() {
|
||||
async function onChatChanged() {
|
||||
if (this_chid === undefined || selected_group) {
|
||||
$('#sd_character_prompt_block').hide();
|
||||
return;
|
||||
@ -737,7 +737,7 @@ function onChatChanged() {
|
||||
$('#sd_character_prompt').val(characterPrompt);
|
||||
$('#sd_character_negative_prompt').val(negativePrompt);
|
||||
$('#sd_character_prompt_share').prop('checked', hasSharedData);
|
||||
void adjustElementScrollHeight();
|
||||
await adjustElementScrollHeight();
|
||||
}
|
||||
|
||||
async function adjustElementScrollHeight() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user