SD: Change onChatChanged to async
| @@ -709,7 +709,7 @@ async function refinePrompt(prompt, isNegative) { | ||
| 709 | 709 | return prompt; |
| 710 | 710 | } |
| 711 | 711 | |
| 712 | 712 | async function onChatChanged() { |
| 713 | 713 | if (this_chid === undefined || selected_group) { |
| 714 | 714 | $('#sd_character_prompt_block').hide(); |
| 715 | 715 | return; |
| @@ -737,7 +737,7 @@ function onChatChanged() { | ||
| 737 | 737 | $('#sd_character_prompt').val(characterPrompt); |
| 738 | 738 | $('#sd_character_negative_prompt').val(negativePrompt); |
| 739 | 739 | $('#sd_character_prompt_share').prop('checked', hasSharedData); |
| 740 | 740 | voidawait adjustElementScrollHeight(); |
| 741 | 741 | } |
| 742 | 742 | |
| 743 | 743 | async function adjustElementScrollHeight() { |