The ServiceWorker
interface inherits properties from its parent, EventTarget
.
ServiceWorker.scriptURL
Read only-
Returns the
ServiceWorker
serialized script URL defined as part ofServiceWorkerRegistration
. The URL must be on the same origin as the document that registers theServiceWorker
. ServiceWorker.state
Read only-
Returns the state of the service worker. It returns one of the following values:
parsed
,installing
,installed
,activating
,activated
, orredundant
.