mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
debounce saving of user input in send_textarea
This commit is contained in:
@ -399,6 +399,7 @@ function saveUserInput() {
|
|||||||
const userInput = String($('#send_textarea').val());
|
const userInput = String($('#send_textarea').val());
|
||||||
SaveLocal('userInput', userInput);
|
SaveLocal('userInput', userInput);
|
||||||
}
|
}
|
||||||
|
const saveUserInputDebounced = debounce(saveUserInput);
|
||||||
|
|
||||||
// Make the DIV element draggable:
|
// Make the DIV element draggable:
|
||||||
|
|
||||||
@ -848,7 +849,7 @@ export function initRossMods() {
|
|||||||
} else {
|
} else {
|
||||||
autoFitSendTextAreaDebounced();
|
autoFitSendTextAreaDebounced();
|
||||||
}
|
}
|
||||||
saveUserInput();
|
saveUserInputDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
restoreUserInput();
|
restoreUserInput();
|
||||||
|
Reference in New Issue
Block a user