Results 1 - 1 of 1

ServiceWorkerContainer.controller

The controller read-only property of the ServiceWorkerContainer interface returns a ServiceWorker object if its state is activated (the same object returned by ServiceWorkerRegistration.active). This property returns null if the request is a force refresh (Shift + refresh) or if there is no active worker.
API Controller Property Reference Service Workers ServiceWorker ServiceWorkerController