Skip to main content

service-worker-cleanup

Browser-only maintenance helpers (also exposed on window for console use). Preserves radio IndexedDB via deleteNonPreservedIndexedDatabases where applicable.

Functions​

FunctionPurpose
diagnoseServiceWorkerIssuesRecommended fix path
inspectServiceWorkersLog registrations and controllers
enforceOneServiceWorkerCollapse duplicate registrations
advancedServiceWorkerCleanupUnregister + cache sweep
nukeAllServiceWorkersAggressive unregister
nuclearServiceWorkerResetFull reset workflow
displayServiceWorkerNukeInstructionsASCII help banner

On load, logs available console commands in development-oriented messaging.

Not for production user flows — operator/debug tooling only.


Sources: src/lib/utils/service-worker-cleanup.ts