org.scalajs.dom.experimental.serviceworkers
The service worker in this state is considered an active worker ready to handle functional events.
The service worker in this state is considered an active worker.
The service worker in this state is considered an active worker. During this state, event.waitUntil(f) can be called inside the onactivate event handler to extend the life of the active worker until the passed promise resolves successfully. No functional events are dispatched until the state becomes activated.
The service worker in this state is considered a waiting worker.
The service worker in this state is considered an installing worker.
The service worker in this state is considered an installing worker. During this state, event.waitUntil(f) can be called inside the oninstall event handler to extend the life of the installing worker until the passed promise resolves successfully. This is primarily used to ensure that the service worker is not active until all of the core caches are populated.
A new service worker is replacing the current service worker, or the current service worker is being discarded due to an install failure.