diff options
author | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-10-01 03:44:05 +0000 |
---|---|---|
committer | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-10-01 03:44:05 +0000 |
commit | 56ef5e9d48750fd43f9faba31ff67e64368153b7 (patch) | |
tree | 552bb68b561dc15f3309743d6e93241bef45f6ec /javascript/edit-attention.js | |
parent | 0eb5fde2fd42184f431ccba5f25d714272e3e6b0 (diff) | |
download | stable-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/edit-attention.js')
-rw-r--r-- | javascript/edit-attention.js | 2 |
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; |