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"
listener($event: ElectronEvent, details: ElectronRegistrationCompletedDetails) => voidCalled with the registration details.

Returns: this — This service workers instance.