These should be function calls

This commit is contained in:
Cohee
2024-09-05 20:07:37 +03:00
parent ac0c33eb76
commit dec85c42f7
2 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ export async function loadInstructMode(data) {
} }
$element.on('input', async function () { $element.on('input', async function () {
power_user.instruct[control.property] = control.isCheckbox ? !!$(this).prop('checked') : $(this).val; power_user.instruct[control.property] = control.isCheckbox ? !!$(this).prop('checked') : $(this).val();
if (!CSS.supports('field-sizing', 'content')) { if (!CSS.supports('field-sizing', 'content')) {
await resetScrollHeight($(this)); await resetScrollHeight($(this));
} }

View File

@ -3099,7 +3099,7 @@ $(document).ready(() => {
}); });
$('#start_reply_with').on('input', function () { $('#start_reply_with').on('input', function () {
power_user.user_prompt_bias = String($(this).val); power_user.user_prompt_bias = String($(this).val());
saveSettingsDebounced(); saveSettingsDebounced();
}); });
@ -3631,7 +3631,7 @@ $(document).ready(() => {
}); });
$('#custom_stopping_strings').on('input', function () { $('#custom_stopping_strings').on('input', function () {
power_user.custom_stopping_strings = String($(this).val).trim(); power_user.custom_stopping_strings = String($(this).val()).trim();
saveSettingsDebounced(); saveSettingsDebounced();
}); });