Readonly
scriptURLReadonly
stateOptional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsDispatches 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.
Optional
options: StructuredSerializeOptionsOptional
options: boolean | EventListenerOptionsOptional
options: boolean | EventListenerOptions
This ServiceWorker API interface 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. Available only in secure contexts.
MDN Reference