mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Up and down
This commit is contained in:
@ -19,7 +19,14 @@ function onExtensionFloatingIntervalInput() {
|
||||
}
|
||||
|
||||
function onExtensionFloatingDepthInput() {
|
||||
promptInsertionDepth = Number($(this).val());
|
||||
let value = Number($(this).val());
|
||||
|
||||
if (promptInsertionDepth < 0) {
|
||||
value = Math.abs(value);
|
||||
$(this).val(value);
|
||||
}
|
||||
|
||||
promptInsertionDepth = value;
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user