getRegistration method
The getRegistration()
method of the
ServiceWorkerContainer interface gets a
ServiceWorkerRegistration object whose scope URL matches the provided
client URL. The method returns a Promise
that resolves to
a ServiceWorkerRegistration or undefined
.
Implementation
external JSPromise<ServiceWorkerRegistration?> getRegistration(
[String clientURL]);