Fix JS syntax error in CTA button: style= was outside string literal
The replace_all for orange button styling put `style="..."` after the className assignment as bare JS, causing `Unexpected identifier 'style'` which killed the entire enhancement script (no toggles, no CTA). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c0adeec663
commit
aa367ecd0a
1 changed files with 2 additions and 1 deletions
|
|
@ -490,7 +490,8 @@ Send reset link
|
||||||
if (btn && newCount > 0) {
|
if (btn && newCount > 0) {
|
||||||
var link = document.createElement("a");
|
var link = document.createElement("a");
|
||||||
link.href = newUrl;
|
link.href = newUrl;
|
||||||
link.className = "inline-block px-6 py-2.5 font-semibold rounded-lg transition-colors text-sm shadow-lg" style="background:#f97316;color:#fff;padding:10px 24px";
|
link.className = "inline-block px-6 py-2.5 font-semibold rounded-lg transition-colors text-sm shadow-lg";
|
||||||
|
link.style.cssText = "background:#f97316;color:#fff;padding:10px 24px";
|
||||||
link.textContent = "Get Started \u2014 Fix " + newCount + " Item" + (newCount > 1 ? "s" : "");
|
link.textContent = "Get Started \u2014 Fix " + newCount + " Item" + (newCount > 1 ? "s" : "");
|
||||||
btn.replaceWith(link);
|
btn.replaceWith(link);
|
||||||
} else if (btn) {
|
} else if (btn) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue