| 21 | ) |
| 22 | |
| 23 | interface ServiceWorkerConfig { |
| 24 | onSuccess?: (registration: ServiceWorkerRegistration) => void |
| 25 | onUpdate?: (registration: ServiceWorkerRegistration) => void |
| 26 | } |
| 27 | |
| 28 | export function register(config?: ServiceWorkerConfig) { |
| 29 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { |
nothing calls this directly
no outgoing calls
no test coverage detected