state

The state read-only property of the ServiceWorker interface returns a string representing the current state of the service worker.

MDN Reference