fix: use unicode apostrophe in Ody's to avoid JS string break in template literal
This commit is contained in:
parent
97c7b7ada0
commit
b0319c2ab2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue