frontend: fix equipped-card preset auto-selection race
release / release (push) Waiting to run

cardsAutoSelectByIccid latched its 'already handled' guard even when no
matching preset was found, so a card equipped before /api/presets had
loaded (the connect-time race with the status/availability polls) never
got auto-selected: navigating to SCP80/RAM showed no preset until the card
was re-inserted.  The guard is now latched only after a successful
selection, and cardsFetch re-runs the auto-selection once the store
arrives, so the card's preset is picked as soon as both resources are
available.

Bumps VERSION to 3.40.3 and the SW cache to simple-v488.
This commit is contained in:
catarrh committed 2026-10-27 18:58:18 +03:00
1 parent 8f63368008
commit 215d0a0ba0
6 files changed
+57 -5

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
const CACHE = 'simple-v487';
const CACHE = 'simple-v488';
const URLS = [
'index.html',
'help.html',