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.

Hierarchy

  • EventTarget
    • ServiceWorkerRegistration

Properties

active: null | <internal>.ServiceWorker
installing: null | <internal>.ServiceWorker
onupdatefound: null | ((this: <internal>.ServiceWorkerRegistration, ev: Event) => any)
pushManager: <internal>.PushManager
scope: string
waiting: null | <internal>.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.

    Parameters

    • event: Event

    Returns boolean

  • Parameters

    Returns Promise<void>

  • Returns Promise<boolean>

  • Returns Promise<void>

Generated using TypeDoc