From 6056a34a5ab3741d36e237ceae6db96817b3968a Mon Sep 17 00:00:00 2001 From: MarcusNyne <69087098+MarcusNyne@users.noreply.github.com> Date: Sat, 24 Aug 2024 17:34:27 -0400 Subject: [PATCH] javascript lint --- script.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/script.js b/script.js index 6061b621b..ca6c80ee2 100644 --- a/script.js +++ b/script.js @@ -229,8 +229,9 @@ function uiCopyElementText(el) { function uiCopyRawText(elid) { var el = document.getElementById(elid); - if (el==null) + if (el == null) { return null; + } return el.innerText; } @@ -238,23 +239,26 @@ function uiCopyRawText(elid) { function uiCopyPngInfo(el, mode) { var text = null; - if (mode=="Positive") + if (mode == "Positive") { text = uiCopyRawText("pnginfo-positive"); - else if (mode=="Negative") + } + else if (mode == "Negative") { text = uiCopyRawText("pnginfo-negative"); - else if (mode=="Settings") + } + else if (mode == "Settings") { text = uiCopyRawText("pnginfo-settings"); - else if (mode=="All") { + } + else if (mode == "All") { text = ""; var t2 = uiCopyRawText("pnginfo-positive"); - if (t2!=null) + if (t2 != null) text += t2; t2 = uiCopyRawText("pnginfo-negative"); - if (t2!=null) - text += "\nNegative prompt:"+t2; + if (t2 != null) + text += "\nNegative prompt:" + t2; t2 = uiCopyRawText("pnginfo-settings"); - if (t2!=null) - text += "\n"+t2; + if (t2 != null) + text += "\n" + t2; if (text == "") text = null; }