diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 20:16:02 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-09 20:16:02 +0000 |
commit | 86867e153f4449167e3489323df35cf04f1fffa0 (patch) | |
tree | 735b7311b84136c87ac17472ed464d1d7fb6759f /script.js | |
parent | d714ea4c41e4e7c0dc4730d9ea137d134691c0a2 (diff) | |
download | stable-diffusion-webui-gfx803-86867e153f4449167e3489323df35cf04f1fffa0.tar.gz stable-diffusion-webui-gfx803-86867e153f4449167e3489323df35cf04f1fffa0.tar.bz2 stable-diffusion-webui-gfx803-86867e153f4449167e3489323df35cf04f1fffa0.zip |
support for prompt styles
fix broken prompt matrix
Diffstat (limited to 'script.js')
-rw-r--r-- | script.js | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -194,3 +194,12 @@ window.addEventListener('paste', e => { input.dispatchEvent(new Event('change')) }); }); + +function ask_for_style_name(style_name, text){ + input = prompt('Style name:'); + if (input === null) { + return [null, null] + } + + return [input, text] +} |