mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-24 13:59:00 +08:00
javascript linting
This commit is contained in:
parent
6056a34a5a
commit
d08d730163
25
script.js
25
script.js
@ -241,29 +241,30 @@ function uiCopyPngInfo(el, mode) {
|
|||||||
|
|
||||||
if (mode == "Positive") {
|
if (mode == "Positive") {
|
||||||
text = uiCopyRawText("pnginfo-positive");
|
text = uiCopyRawText("pnginfo-positive");
|
||||||
}
|
} else if (mode == "Negative") {
|
||||||
else if (mode == "Negative") {
|
|
||||||
text = uiCopyRawText("pnginfo-negative");
|
text = uiCopyRawText("pnginfo-negative");
|
||||||
}
|
} else if (mode == "Settings") {
|
||||||
else if (mode == "Settings") {
|
|
||||||
text = uiCopyRawText("pnginfo-settings");
|
text = uiCopyRawText("pnginfo-settings");
|
||||||
}
|
} else if (mode == "All") {
|
||||||
else if (mode == "All") {
|
|
||||||
text = "";
|
text = "";
|
||||||
var t2 = uiCopyRawText("pnginfo-positive");
|
var t2 = uiCopyRawText("pnginfo-positive");
|
||||||
if (t2 != null)
|
if (t2 != null) {
|
||||||
text += t2;
|
text += t2;
|
||||||
|
}
|
||||||
t2 = uiCopyRawText("pnginfo-negative");
|
t2 = uiCopyRawText("pnginfo-negative");
|
||||||
if (t2 != null)
|
if (t2 != null) {
|
||||||
text += "\nNegative prompt:" + t2;
|
text += "\nNegative prompt: " + t2;
|
||||||
|
}
|
||||||
t2 = uiCopyRawText("pnginfo-settings");
|
t2 = uiCopyRawText("pnginfo-settings");
|
||||||
if (t2 != null)
|
if (t2 != null) {
|
||||||
text += "\n" + t2;
|
text += "\n" + t2;
|
||||||
if (text == "")
|
}
|
||||||
|
if (text == "") {
|
||||||
text = null;
|
text = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (text!=null) {
|
if (text != null) {
|
||||||
navigator.clipboard.writeText(text);
|
navigator.clipboard.writeText(text);
|
||||||
|
|
||||||
el.classList.remove('animate');
|
el.classList.remove('animate');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user