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

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();