diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-11 20:25:35 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-11 20:25:35 +0000 |
commit | 81d91cea29b8246ad0151fa89e37d6ef719b8b51 (patch) | |
tree | 58a1e16c73bc68245f895fbe42eb10cfb5c0cda1 /script.js | |
parent | 8fb9c57ed62dcef721d50c1eeb9c20f65c509215 (diff) | |
parent | 4535239d8a2541171efe0af4bc55476e119f205e (diff) | |
download | stable-diffusion-webui-gfx803-81d91cea29b8246ad0151fa89e37d6ef719b8b51.tar.gz stable-diffusion-webui-gfx803-81d91cea29b8246ad0151fa89e37d6ef719b8b51.tar.bz2 stable-diffusion-webui-gfx803-81d91cea29b8246ad0151fa89e37d6ef719b8b51.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -186,11 +186,7 @@ window.addEventListener('paste', e => { }); }); -function ask_for_style_name(style_name, text){ - input = prompt('Style name:'); - if (input === null) { - return [null, null] - } - - return [input, text] +function ask_for_style_name(_, prompt_text, negative_prompt_text) { + name_ = prompt('Style name:') + return name_ === null ? [null, null, null]: [name_, prompt_text, negative_prompt_text] } |