Interface ServiceWorkerRegistration

This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. Available only in secure contexts.

MDN Reference

Hierarchy

Properties

installing: ServiceWorker
navigationPreload: NavigationPreloadManager
onupdatefound: ((this, ev) => any)

Type declaration

pushManager: PushManager
scope: string
waiting: ServiceWorker

Methods

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    MDN Reference

    Parameters

    Returns boolean