Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Web Workers.
The getRegistrations()
method of the ServiceWorkerContainer
interface gets all ServiceWorkerRegistration
s associated with a ServiceWorkerContainer
, in an array. The method returns a Promise
that resolves to an array of ServiceWorkerRegistration
.