Liking cljdoc? Tell your friends :D

web.InstallEvent

The parameter passed into the web.oninstall handler, the InstallEvent represents an install action that is dispatched on the web.ServiceWorkerGlobalScope a web.ServiceWorker. As a child of web.ExtendableEvent, it that functional events such as web.FetchEvent are not dispatched installation.

The parameter passed into the `web.oninstall` handler, the InstallEvent
represents an install action that is dispatched on the `web.ServiceWorkerGlobalScope`
a `web.ServiceWorker`. As a child of `web.ExtendableEvent`, it
that functional events such as `web.FetchEvent` are not dispatched
installation.
raw docstring

active-workercljs

(active-worker this)

Property.

The activeWorker read-only property of the web.InstallEvent returns the web.ServiceWorker that is currently actively controlling page.

var myActiveWorker = event.activeWorker

See also: https://developer.mozilla.org/en-US/docs/Web/API/InstallEvent/activeWorker

Property.

The activeWorker read-only property of the `web.InstallEvent`
returns the `web.ServiceWorker` that is currently actively controlling
page.

`var myActiveWorker = event.activeWorker`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/InstallEvent/activeWorker`
sourceraw docstring

constructorcljs

Constructor.

The InstallEvent() constructor creates a new web.InstallEvent object.

type The type of the event. init Optional An options object containing any custom settings that you want to apply to the event object. Available options are as follows:

activeWorker: The web.ServiceWorker that is currently actively controlling the page.

See also: https://developer.mozilla.org/en-US/docs/Web/API/InstallEvent/InstallEvent

Constructor.

The InstallEvent() constructor creates a new `web.InstallEvent` object.

type
The type of the event.
init Optional
An options object containing any custom settings that you want to apply to the event object. Available options are as follows:

activeWorker: The `web.ServiceWorker` that is currently actively controlling the page.

See also: `https://developer.mozilla.org/en-US/docs/Web/API/InstallEvent/InstallEvent`
sourceraw docstring

set-active-worker!cljs

(set-active-worker! this val)

Property.

The activeWorker read-only property of the web.InstallEvent returns the web.ServiceWorker that is currently actively controlling page.

var myActiveWorker = event.activeWorker

See also: https://developer.mozilla.org/en-US/docs/Web/API/InstallEvent/activeWorker

Property.

The activeWorker read-only property of the `web.InstallEvent`
returns the `web.ServiceWorker` that is currently actively controlling
page.

`var myActiveWorker = event.activeWorker`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/InstallEvent/activeWorker`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close