debounce saving of user input in send_textarea

This commit is contained in:
LenAnderson 2024-03-26 12:11:15 -04:00
parent 69d195ef31
commit d9022db7d9
1 changed files with 2 additions and 1 deletions

View File

@ -399,6 +399,7 @@ function saveUserInput() {
const userInput = String($('#send_textarea').val());
SaveLocal('userInput', userInput);
}
const saveUserInputDebounced = debounce(saveUserInput);
// Make the DIV element draggable:
@ -848,7 +849,7 @@ export function initRossMods() {
} else {
autoFitSendTextAreaDebounced();
}
saveUserInput();
saveUserInputDebounced();
});
restoreUserInput();