Service_worker.ContainerService worker containers.
The type for ServiceWorkerContainer objects.
of_navigator n is the service worker container of navigator n.
val as_target : t -> Brr.Ev.targetas_target c is c as an event target.
val controller : t -> service_worker optioncontroller c is the active service worker if any.
val ready : t -> Registration.t Fut.or_errorready c is a future that resolves when a service worker is active.
val register_opts : ?scope:Jstr.t -> ?type':Worker.Type.t -> ?update_via_cache:Update_via_cache.t -> unit -> register_optsregister_opts ~scope ~type ~update_via_cache () are registration options with given properties.
val register : ?register_opts:register_opts -> t -> Jstr.t -> Registration.t Fut.or_errorregister c script_uri ~register_opts creates or updates a registration with script_url.
val get_registration : t -> Jstr.t option -> Registration.t option Fut.or_errorget_registration c url is the registration for url (if any).
val get_registrations : t -> Registration.t list Fut.or_errorget_registrations c are all the registration fo c.