Baseline Widely available
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
.
None.
Return valueA Promise
that resolves to an array of ServiceWorkerRegistration
objects.
navigator.serviceWorker.getRegistrations().then((registrations) => {
document.querySelector("#status").textContent =
"ServiceWorkerRegistrations found.";
});
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4