fix: escape apostrophe in JS string inside template literal (syntax error kills script)

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

View file

@ -3250,7 +3250,7 @@ async function requestPortfolioAccess() {
const d = await r.json(); const d = await r.json();
if (d.ok && d.sent !== false) { if (d.ok && d.sent !== false) {
result.style.cssText = 'margin-top:12px;font-size:.88rem;color:#22c55e;font-weight:600;padding:10px 14px;background:rgba(34,197,94,0.08);border:1px solid rgba(34,197,94,0.25);border-radius:6px;display:block'; result.style.cssText = 'margin-top:12px;font-size:.88rem;color:#22c55e;font-weight:600;padding:10px 14px;background:rgba(34,197,94,0.08);border:1px solid rgba(34,197,94,0.25);border-radius:6px;display:block';
result.textContent = '✓ Link sent! Check your inbox — and your spam folder if you don\'t see it within a minute.'; result.textContent = "✓ Link sent! Check your inbox — and your spam folder if you don't see it within a minute.";
if (btn) { btn.disabled = true; btn.textContent = 'Sent ✓'; btn.style.opacity = '0.6'; } if (btn) { btn.disabled = true; btn.textContent = 'Sent ✓'; btn.style.opacity = '0.6'; }
emailEl.value = ''; emailEl.value = '';
} else { } else {