ElectronServiceWorkers.on('registration-completed') method
ElectronServiceWorkers › on(‘registration-completed’)
Unofficial
Registers a listener for theregistration-completed event, emitted when a service worker has been registered. Signature:
on(event: "registration-completed", listener: (event: ElectronEvent, details: ElectronRegistrationCompletedDetails) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "registration-completed" | The event name. |
| listener | (event: ElectronEvent, details: ElectronRegistrationCompletedDetails) => void | Called with the registration details. |
Returns: this — This service workers instance.