diff options
| author | Adam Soltys <[email protected]> | 2026-06-15 09:24:32 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-15 09:24:32 -0700 |
| commit | 92b27e7d6de51ae178f068b079d3eec017689d85 (patch) | |
| tree | 8783d96fe096f0633013991355bf3ef44f081088 /src/api.js | |
| parent | 8a2bb0790d581ff67325966b3e37d6b2500128b5 (diff) | |
| download | coinosv3-92b27e7d6de51ae178f068b079d3eec017689d85.tar.gz coinosv3-92b27e7d6de51ae178f068b079d3eec017689d85.zip | |
Drop live badge + fiat price; persist wallet in sessionStorage
- Remove the online/live status badge and the USD price line, which both
appeared after load and caused layout shift. Stop fetching price entirely.
- Persist the seed + passphrase in sessionStorage so a page refresh restores
the open wallet instead of returning to the unlock screen. Cleared on
logout and (by the browser) when the tab closes.
Note: sessionStorage holds the seed in plaintext for the tab session — an
acceptable tradeoff for this self-custody tool and scoped to the tab.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
| -rw-r--r-- | src/api.js | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -142,19 +142,6 @@ export class Api { return { fastestFee: 20, halfHourFee: 10, hourFee: 5, economyFee: 2, minimumFee: 1 }; } - // Only mempool.space exposes a price endpoint; price is non-critical. - async price() { - const h = this._hosts.find((x) => x.base.includes('mempool')); - if (!h || h.cooldownUntil > Date.now()) return null; - try { - const res = await fetch(h.base + '/v1/prices'); - if (!res.ok) return null; - const p = await res.json(); - return p && p.USD ? p.USD : null; - } catch { - return null; - } - } async broadcast(hexTx) { if (this.offline) throw new Error('offline'); |
