mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-30 15:57:11 +00:00
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:
1 parent
8f33836ce8
commit
d1f028a291
1 file changed
+11
-1
+11
-1
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user