Back to Content

ServiceWorkerGlobalScope: registration property

files/en-us/web/api/serviceworkerglobalscope/registration/index.md

latest759 B
Original Source

{{APIRef("Service Workers API")}}{{SecureContext_Header}}{{AvailableInWorkers("service")}}

The registration read-only property of the {{domxref("ServiceWorkerGlobalScope")}} interface returns a reference to the {{domxref("ServiceWorkerRegistration")}} object, which represents the service worker's registration.

Value

A {{domxref("ServiceWorkerRegistration")}} object.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also