Available on js
ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
ServiceWorker object if its state is
activated (the same object returned by
ServiceWorkerRegistration.active). This property returns
null during a force-refresh request (Shift + refresh) or if there is no active worker.
Fired whenever an
error event occurs in the associated service workers.
Provides a way of delaying code execution until a service worker is active. It returns a
Promise that will never reject, and which waits indefinitely until the
ServiceWorkerRegistration associated with the current page has an
ServiceWorkerRegistration.active worker. Once that condition is met, it resolves with the
getRegistration(documentURL:String = ""):Promise<Dynamic>
© 2005–2020 Haxe Foundation
Licensed under a MIT license.