diff options
| author | Adam Soltys <[email protected]> | 2026-06-27 19:12:29 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-27 19:12:29 -0700 |
| commit | 0a17635c93b1e7ec1b2937ece25000c518881f64 (patch) | |
| tree | e4a598bc28f8cb02e8b9ea23fd03887e3f0b04ac /src/api.js | |
| parent | 803ccd12cded3f09086c715fffbc918a01575e09 (diff) | |
| download | coinosv3-0a17635c93b1e7ec1b2937ece25000c518881f64.tar.gz coinosv3-0a17635c93b1e7ec1b2937ece25000c518881f64.zip | |
Browser history / back-button navigation
Mirror the app's screen position (screen, tab, txDetail, bump, giftsAll, giftMode,
claimStep) into the browser history, so Back/Forward (and Android system back)
move between screens actually viewed. render() snapshots just these nav fields and
pushState()s on change — incidental re-renders (typing, polling) don't add
entries. popstate restores the snapshot and re-renders. History-API calls are
guarded so they can never break a render.
Verified via CDP: tab nav and tx-detail push entries; Back/Forward (incl. A→B→A)
restore the right screen and the DOM follows.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions
