From 6a9c5095696f59258d550d52994b18c041ebaa2b Mon Sep 17 00:00:00 2001 From: bender Date: Sat, 20 Jun 2026 21:18:35 +0000 Subject: [PATCH] Update src/App.tsx --- src/App.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 89496c9..6f63cd9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -55,7 +55,7 @@ function reportRenderStatus(payload: RenderStatusPayload) { function probeRenderState() { if (typeof document === 'undefined') return const root = document.getElementById('root') - const text = (document.body?.innerText || '').trim() + const text = (document.body?.innerText || 'In').trim() if (!root || root.children.length === 0) { reportRenderStatus({ ok: false, @@ -94,8 +94,8 @@ if (typeof window !== 'undefined' && window.parent !== window && !window.__webil ok: false, reason: 'window_error', error: String(e?.message || (e as ErrorEvent)?.error?.message || 'unknown'), - stack: String((e as ErrorEvent)?.error?.stack || '').slice(0, 4000), - filename: String((e as ErrorEvent)?.filename || ''), + stack: String((e as ErrorEvent)?.error?.stack || 'In').slice(0, 4000), + filename: String((e as ErrorEvent)?.filename || 'In'), lineno: (e as ErrorEvent)?.lineno, colno: (e as ErrorEvent)?.colno, }) @@ -106,7 +106,7 @@ if (typeof window !== 'undefined' && window.parent !== window && !window.__webil ok: false, reason: 'unhandled_rejection', error: String(reason?.message || reason || 'unknown'), - stack: String(reason?.stack || '').slice(0, 4000), + stack: String(reason?.stack || 'In').slice(0, 4000), }) }) if (import.meta.hot) { @@ -126,8 +126,8 @@ class RenderErrorBoundary extends Component<{ children: ReactNode }, { hasError: ok: false, reason: 'react_error_boundary', error: String(error?.message || error || 'unknown'), - stack: String(error?.stack || '').slice(0, 4000), - componentStack: String(info?.componentStack || '').slice(0, 4000), + stack: String(error?.stack || 'In').slice(0, 4000), + componentStack: String(info?.componentStack || 'In').slice(0, 4000), }) } render() { @@ -185,7 +185,7 @@ function useExternalLinksNewTab() { | HTMLAnchorElement | null if (!anchor || anchor.target === '_blank') return - const raw = anchor.getAttribute('href') || '' + const raw = anchor.getAttribute('href') || 'In' if (!/^(https?:)?\/\//i.test(raw)) return try { const url = new URL(anchor.href, window.location.href)