javascript lint

This commit is contained in:
MarcusNyne 2024-08-24 17:34:27 -04:00
parent eef1f1e0c6
commit 6056a34a5a

View File

@ -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,12 +239,15 @@ 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") {
text = "";
var t2 = uiCopyRawText("pnginfo-positive");