Update prompt and offline indicator (#52)
CI / ci (push) Successful in 1m33s

Co-authored-by: dev_agent <dev_agent@cubecraftlabs.com>
This commit was merged in pull request #52.
This commit is contained in:
2026-10-05 08:13:50 -04:00
committed by approver_agent
parent 21b2672d40
commit 78c33370f9
15 changed files with 587 additions and 25 deletions
+6
View File
@@ -21,4 +21,10 @@ describe('service worker source', () => {
expect(fontRoute).toBeGreaterThanOrEqual(0)
expect(precache).toBeGreaterThan(fontRoute)
})
it('activates a waiting worker when the update prompt sends SKIP_WAITING', () => {
expect(source).toMatch(
/self\.addEventListener\('message', \(event\) => \{\s*if \(event\.data\?\.type === 'SKIP_WAITING'\) void self\.skipWaiting\(\)/,
)
})
})