Skip to content

ElectronServiceWorkers.on('registration-completed') method

ElectronServiceWorkers › on(‘registration-completed’)

Unofficial

Registers a listener for the registration-completed event, emitted when a service worker has been registered.

Signature:

on(event: "registration-completed", listener: (event: ElectronEvent, details: ElectronRegistrationCompletedDetails) => void): this

Parameters:

Parameter Type Description
event "registration-completed" The event name.
listener (event: ElectronEvent, details: ElectronRegistrationCompletedDetails) => void Called with the registration details.

Returns: thisThis service workers instance.