Config
Config: { onSuccess?: any; onUpdate?: any }
Type declaration
onSuccess?:function
- onSuccess(serviceWorkerRegistration: ServiceWorkerRegistration): void
Parameters
serviceWorkerRegistration: ServiceWorkerRegistration
Returns void
onUpdate?:function
- onUpdate(serviceWorkerRegistration: ServiceWorkerRegistration): void
Parameters
serviceWorkerRegistration: ServiceWorkerRegistration
Returns void
Registers the service worker if the browser supports it.