mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 03:10:21 +00:00
Add support for saving styles with negative prompts
This commit is contained in:
10
script.js
10
script.js
@@ -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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user