From 92b27e7d6de51ae178f068b079d3eec017689d85 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 15 Jun 2026 09:24:32 -0700 Subject: Drop live badge + fiat price; persist wallet in sessionStorage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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) --- src/api.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/api.js') diff --git a/src/api.js b/src/api.js index ea8461e..43d2bae 100644 --- a/src/api.js +++ b/src/api.js @@ -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'); -- cgit v1.2.3