getRegistration method

JSPromise<ServiceWorkerRegistration?> getRegistration([
  1. String clientURL
])

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]);