fix: use unicode apostrophe in Ody's to avoid JS string break in template literal

This commit is contained in:
gitadmin 2026-05-02 15:27:17 +00:00
parent 97c7b7ada0
commit b0319c2ab2

View file

@ -973,7 +973,7 @@ async function askOdy(artifactId, title, sourceUrl) {
} catch(e) {
const verdictEl = document.getElementById('verdict-' + artifactId);
if (verdictEl) {
verdictEl.innerHTML = '<div class="ody-verdict-label" style="color:var(--red)">Error</div><div class="ody-verdict-text">Could not get Ody\'s analysis. ' + esc(e.message) + '</div><button class="ody-close" onclick="clearVerdict(\\''+artifactId+'\\')">×</button>';
verdictEl.innerHTML = '<div class="ody-verdict-label" style="color:var(--red)">Error</div><div class="ody-verdict-text">Could not get Ody\u2019s analysis. ' + esc(e.message) + '</div><button class="ody-close" onclick="clearVerdict(\\''+artifactId+'\\')">×</button>';
}
} finally {
btn.disabled = false;