fix double title

This commit is contained in:
Zeecka
2026-01-14 21:25:18 +01:00
parent 04c332900f
commit 7f24f02c9e
+5 -1
View File
@@ -521,10 +521,14 @@ function parseResult(result) {
channels = ["Superimposed", "Red", "Green", "Blue"]; channels = ["Superimposed", "Red", "Green", "Blue"];
} }
let title_h3 = "";
for (const channel of channels) { for (const channel of channels) {
const images = result[tool]["images"][channel]; const images = result[tool]["images"][channel];
if (images) { if (images) {
analyzer.innerHTML += `<h3>${capitalize(escapeHtml(channel))}</h3>`; title_h3 = capitalize(escapeHtml(channel));
if (title_h3 != "Color Remapping"){
analyzer.innerHTML += `<h3>${title_h3}</h3>`;
}
for (const image of images) { for (const image of images) {
analyzer.innerHTML += `<div class='results_img'><img src='${escapeHtml( analyzer.innerHTML += `<div class='results_img'><img src='${escapeHtml(
image image