fix(shell): escape apostrophe in access gate to prevent script parse failure
The single quote in "don't" broke the JS string literal inside the inline script, causing a SyntaxError that killed the entire script block including tab bar and header initialization. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2de61cd7ad
commit
692c75ee5c
|
|
@ -680,7 +680,7 @@ export function renderShell(opts: ShellOptions): string {
|
|||
'<div class="access-gate__card">' +
|
||||
'<div class="access-gate__icon">🔒</div>' +
|
||||
'<h2 class="access-gate__title">Private Space</h2>' +
|
||||
'<p class="access-gate__desc">You don\'t have access to <strong>' + slug + '</strong>.</p>' +
|
||||
'<p class="access-gate__desc">You don\\\'t have access to <strong>' + slug + '</strong>.</p>' +
|
||||
'<p class="access-gate__hint">This space is private. Ask the owner to invite you as a member.</p>' +
|
||||
'<a href="' + homeHref + '" class="access-gate__btn">' + homeLabel + '</a>' +
|
||||
'</div>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue