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.
(active-worker this)
Property.
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. 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`
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`
(set-active-worker! this val)
Property.
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. 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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close