The registration
read-only property of the ServiceWorkerGlobalScope
interface returns a reference to the ServiceWorkerRegistration
object, which represents the service worker's registration.
Syntax
serviceWorkerRegistration = self.registration
Value
A ServiceWorkerRegistration
object.
Specifications
Specification | Status | Comment |
---|---|---|
Service Workers The definition of 'ServiceWorkerGlobalScope.registration' in that specification. |
Working Draft | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 40 | ? | 441 | No | 24 | No |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | Opera Android | iOS Safari | Samsung Internet |
---|---|---|---|---|---|---|---|
Basic support | 40 | 40 | ? | 44 | 24 | No | 4.0 |
1. Service workers (and Push) have been disabled in the Firefox 45 and 52 Extended Support Releases (ESR).