serviceWorker

open external val serviceWorker: ServiceWorker(source)

The serviceWorker read-only property of the ServiceWorkerGlobalScope interface returns a reference to the ServiceWorker object, which represents the service worker.

MDN Reference