-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
29 lines (19 loc) · 999 Bytes
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
title: "ServiceWorkerGlobalScope: registration property"
short-title: registration
slug: Web/API/ServiceWorkerGlobalScope/registration
page-type: web-api-instance-property
browser-compat: api.ServiceWorkerGlobalScope.registration
---
{{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
- [Using Service Workers](/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers)
- [Service workers basic code example](https://github.com/mdn/dom-examples/tree/main/service-worker/simple-service-worker)
- [Using web workers](/en-US/docs/Web/API/Web_Workers_API/Using_web_workers)