Firefox Tomorrow

web api instance property

ServiceWorkerGlobalScope: serviceWorker property

View on MDN ↗

Secure contextAvailable in workers

The serviceWorker read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorker object, which represents the service worker.

Value

A ServiceWorker object.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also