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:

ParameterTypeDescription
event"registration-completed"The event name.
listener(event: ElectronEvent, details: ElectronRegistrationCompletedDetails) => voidCalled with the registration details.

Returns: thisThis service workers instance.