mazey
    Preparing search index...

    Interface ServiceWorkerUpdateCallbacks

    Callbacks used by watchServiceWorkerUpdates.

    interface ServiceWorkerUpdateCallbacks {
        onControllerChange?(): void;
        onUpdateAvailable(worker: ServiceWorker): void;
    }

    Index

    • Called after the service worker controlling the page changes.

      Returns void

    • Called when a waiting update is ready to be activated.

      Parameters

      • worker: ServiceWorker

      Returns void