From 3e60dbd0351e74ebd09a991bb1947f27c3054f05 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 30 Apr 2026 00:24:52 +0000 Subject: [PATCH] deploy(pointcloud): b4c2f7d20b649ab66962a957f6e9a7f3a03c68ab b4c2f7d20b649ab66962a957f6e9a7f3a03c68ab --- pointcloud/index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pointcloud/index.html b/pointcloud/index.html index 6040fa17..067abd2a 100644 --- a/pointcloud/index.html +++ b/pointcloud/index.html @@ -461,9 +461,15 @@ return faceMeshFrame() || syntheticFrame(); } + // Once auto mode confirms there is no /api/splats backend on this origin, + // set this flag so we stop hammering the network with 404 fetches every + // tick. Remote (?backend=) and live (?live=1) modes keep retrying so + // a transient outage doesn't permanently downgrade them. + var networkDisabled = false; + async function fetchCloud() { // Demo-only mode: never hit the network. - if (backendArg === "demo") { + if (backendArg === "demo" || networkDisabled) { transportMode = "demo"; handleData(pickDemoFrame()); return; @@ -480,6 +486,9 @@ '● OFFLINE
Live backend required (?live=1) but unreachable.
' + (err && err.message ? err.message : err) + ''; return; } + // Auto mode + first failure → assume this is a static host (Pages) + // and stop polling. Console stays clean; demo renders locally. + if (backendArg === "auto") networkDisabled = true; transportMode = "demo"; handleData(pickDemoFrame()); }