Liking cljdoc? Tell your friends :D
ClojureScript only.

web.workers.InstallEvent

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

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

active-workercljs

(active-worker this)

Property.

[Read Only]

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

var myActiveWorker = event.activeWorker

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

Property.

[Read Only]

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

`var myActiveWorker = event.activeWorker`

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

constructorcljs

(constructor & args)

Constructor.

The InstallEvent() constructor creates a new web.workers.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.workers.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.workers.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.workers.ServiceWorker` that is currently actively controlling the page.

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

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

× close