Results 21 - 40 of 73


The parameter passed into the oninstall handler, the InstallEvent interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation. 
API InstallEvent Interface offline Offline Reference Service Workers ServiceWorker Workers


The activeWorker read-only property of the InstallEvent interface returns the ServiceWorker that is currently actively controlling the page.
activeWorker API InstallEvent Property Reference Service Workers ServiceWorker


The Navigator.serviceWorker read-only property returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
API Navigator Property Reference Référence Service Workers ServiceWorker


The ServiceWorker interface of the ServiceWorker API provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
API Draft Interface Offline offline Service Workers ServiceWorker Workers


An EventListener property called whenever an event of type statechange is fired; it is basically fired anytime the ServiceWorker.state changes.
API onstatechange Property Reference Référence Service Workers ServiceWorker


Returns the ServiceWorker serialized script URL defined as part of ServiceWorkerRegistration. Must be on the same origin as the document that registers the ServiceWorker.
API Property Reference Référence scriptURL Service Workers ServiceWorker


The state read-only property of the ServiceWorker interface returns a string representing the current state of the service worker. It can be one of the following values: installing, installed, activating, activated, or redundant.
API Property Reference Référence Service Workers ServiceWorker state


The controller read-only property of the ServiceWorkerContainer interface returns a ServiceWorker object if its state is activated (the same object returned by This property returns null if the request is a force refresh (Shift + refresh) or if there is no active worker.
API Controller Property Reference Service Workers ServiceWorker ServiceWorkerController