/* The walk's other device: a phone that has just installed the app. The mock is the whole backend on that leg, so it can answer as one — and the flag has to survive `location.reload()`, which is why it rides in the URL fragment as well as in localStorage: a file:// document's storage is not something the harness can lean on, and a fragment always comes back. */ const fresh = (() => { try { if (location.hash.indexOf("fresh") >= 0) return true; } catch { /* no document */ } try { return localStorage.getItem("mockFresh") === "1"; } catch { return false; } })();