aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authormissionfloyd <missionfloyd@users.noreply.github.com>2023-10-01 03:44:05 +0000
committermissionfloyd <missionfloyd@users.noreply.github.com>2023-10-01 03:44:05 +0000
commit56ef5e9d48750fd43f9faba31ff67e64368153b7 (patch)
tree552bb68b561dc15f3309743d6e93241bef45f6ec /javascript
parent0eb5fde2fd42184f431ccba5f25d714272e3e6b0 (diff)
downloadstable-diffusion-webui-gfx803-56ef5e9d48750fd43f9faba31ff67e64368153b7.tar.gz
stable-diffusion-webui-gfx803-56ef5e9d48750fd43f9faba31ff67e64368153b7.tar.bz2
stable-diffusion-webui-gfx803-56ef5e9d48750fd43f9faba31ff67e64368153b7.zip
Remove end parenthesis from weight
Diffstat (limited to 'javascript')
-rw-r--r--javascript/edit-attention.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/edit-attention.js b/javascript/edit-attention.js
index df218c1e..794453bf 100644
--- a/javascript/edit-attention.js
+++ b/javascript/edit-attention.js
@@ -86,7 +86,7 @@ function keyupEditAttention(event) {
}
var end = text.slice(selectionEnd + 1).indexOf(closeCharacter) + 1;
- var weight = parseFloat(text.slice(selectionEnd + 1, selectionEnd + 1 + end));
+ var weight = parseFloat(text.slice(selectionEnd + 1, selectionEnd + end));
if (isNaN(weight)) return;
weight += isPlus ? delta : -delta;