Module Service_worker.Registration

Service registration objects.

val update : Brr_webworkers.Service_worker.Registration.t -> unit

update r attempts to update the service worker of r.

val unregister : Brr_webworkers.Service_worker.Registration.t -> bool

unregister r unregisters the service worker registration. This is false if no registration was false.

val show_notification : ?opts:Brr_io.Notification.opts -> Brr_webworkers.Service_worker.Registration.t -> Jstr.t -> unit

show_notification r title ~opts displays a notification with title title an options opts.

val get_notifications : ?tag:Jstr.t -> Brr_webworkers.Service_worker.Registration.t -> Brr_io.Notification.t list

get_notifications r ~tag are notifications created via r and tagged with tag (or all of them if unspecified).