Fix queue list silent crash and missing uploaded status

Three fixes for queue list not updating:
1. Safe getBlob fallback - works even if old storage.js is cached
   by the service worker (no Storage.getBlob method)
2. Include 'uploaded' status in active filter - photos briefly in
   uploaded state (between upload and verify) were invisible
3. Wrap all interval refreshes in try/catch so one error doesn't
   silently kill all future updates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-07 16:28:45 -06:00
parent 4e6fec43d3
commit 9047758c38
2 changed files with 29 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
// NextSnap Service Worker
// Provides offline-first caching for the app shell
const CACHE_VERSION = 'nextsnap-v17';
const APP_SHELL_CACHE = 'nextsnap-shell-v13';
const RUNTIME_CACHE = 'nextsnap-runtime-v13';
const CACHE_VERSION = 'nextsnap-v18';
const APP_SHELL_CACHE = 'nextsnap-shell-v14';
const RUNTIME_CACHE = 'nextsnap-runtime-v14';
// Assets to cache on install
const APP_SHELL_ASSETS = [