From 379a5f7b34bdd55ca385b36523ec0cd0ab0499bc Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 18 Jun 2026 22:32:18 +0700 Subject: [PATCH] debug: add visible HTML marker to diagnose white screen in APK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Red banner renders from pure HTML before any JS loads. If visible → HTML loads but JS fails. If not visible → WebView can't even load index.html. Co-authored-by: shakespeare.diy --- index.html | 11 ++++++++--- src/main.tsx | 4 ++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 6c9d2d8..7ae579f 100644 --- a/index.html +++ b/index.html @@ -40,11 +40,16 @@ - - - + + + + +
+ SkateSpots loading... (v1.0.6-debug) +
diff --git a/src/main.tsx b/src/main.tsx index fbf0e86..998b28c 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,6 +7,10 @@ import { ErrorBoundary } from '@/components/ErrorBoundary'; import App from './App.tsx'; import './index.css'; +// Remove debug marker — if JS reaches here, the script is executing +const debugMarker = document.getElementById('debug-marker'); +if (debugMarker) debugMarker.remove(); + // Hide Capacitor splash screen once JS is ready // Uses the global Capacitor object to avoid a hard dependency on the package if (typeof window !== 'undefined') {