scan flow: fire scan immediately on tag-page load (location is an upgrade, not a gate) so a tag view always records+alerts; add request logging middleware (method/path/status/duration) to stdout for diagnostics

This commit is contained in:
2026-08-10 18:51:35 +10:00
parent 1fae314eb4
commit f2d1acac35
2 changed files with 23 additions and 1 deletions

View File

@@ -145,6 +145,9 @@
{timeout: 20000, maximumAge: 0}
);
}
// Fire a scan immediately so a tag view always reports (and alerts) —
// location is an upgrade, never a gate.
sendScan(null, null);
if (btn) btn.addEventListener("click", tryLocation);
tryLocation();
})();