Fix for code scanning alert no. 47

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
MashaKashirinaandCopilot Autofix powered by AI authored and GitHub committed 2026-10-11 18:54:07 +02:00
1 parent 8f33836ce8
commit d1f028a291
1 file changed
+11 -1
+11 -1
View File
@@ -1930,7 +1930,17 @@
body.appendChild(div);
})
.catch(function() {
body.innerHTML = '<div class="accordion-loading">Could not load changelog - <a href="' + body.dataset.src + '" target="_blank">view source file</a></div>';
body.innerHTML = '';
const loading = document.createElement('div');
loading.className = 'accordion-loading';
loading.appendChild(document.createTextNode('Could not load changelog - '));
const link = document.createElement('a');
link.href = body.dataset.src || '#';
link.target = '_blank';
link.rel = 'noopener';
link.textContent = 'view source file';
loading.appendChild(link);
body.appendChild(loading);
});
}
}