From 190d27995e751ad3f64d84832ea3358765bc5c63 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 7 Oct 2026 08:26:57 -0700 Subject: unread-dot, sw-reload tests follow the bottom nav and the split build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - unread-dot: the front door's way to import is Create a new wallet → Have an existing seed; the dot is the Messages bottom-nav button's - sw-reload: the split build loads app-.js, so a restamped build asks for app-deadbeef….js; serve the real entry for it Co-Authored-By: Claude Opus 5.5 --- tools/sw-reload-test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/sw-reload-test.js') diff --git a/tools/sw-reload-test.js b/tools/sw-reload-test.js index a869d9d..7a41c7f 100644 --- a/tools/sw-reload-test.js +++ b/tools/sw-reload-test.js @@ -32,7 +32,9 @@ const server = Bun.serve({ if (p === '/' || p === '/index.html') return new Response(current.html, { headers: { 'content-type': 'text/html', 'cache-control': 'no-store' } }); // The worker precaches the shell during install and addAll rejects on any // miss — a 404 here means it never activates and the test proves nothing. - const f = Bun.file('dist' + p); + // The split build names its entry after the token (app-.js), so + // a restamped build asks for app-deadbeef….js: the same file. + const f = Bun.file('dist' + p.replace(/deadbeef0000\d/, token)); return new Response(f, { headers: { 'cache-control': 'no-store' } }); }, }); -- cgit v1.2.3