The ServiceWorker interface of the ServiceWorker API provides reference to a service worker. Multiple browsing contexts (e.g. workers, etc.) can be associated with the same service worker, through a unique ServiceWorker object.
The ServiceWorker interface of the ServiceWorker API provides reference to a service worker. Multiple browsing contexts (e.g. workers, etc.) can be associated with the same service worker, through a unique ServiceWorker object.
(onerror this)
Property.
The AbstractWorker.onerror property of the web.AbstractWorker
represents an web.EventHandler
, that is a function to be called
the error event occurs and bubbles through the web.Worker
.
myWorker.onerror = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror
Property. The AbstractWorker.onerror property of the `web.AbstractWorker` represents an `web.EventHandler`, that is a function to be called the error event occurs and bubbles through the `web.Worker`. `myWorker.onerror = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror`
(onstatechange this)
Property.
An web.EventListener
property called whenever an event of type
is fired; it is basically fired anytime the web.ServiceWorker.state
ServiceWorker.onstatechange = function(statechangeevent) { ... } ServiceWorker.addEventListener('statechange', function(statechangeevent) { ... } )
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange
Property. An `web.EventListener` property called whenever an event of type is fired; it is basically fired anytime the `web.ServiceWorker.state` `ServiceWorker.onstatechange = function(statechangeevent) { ... } ServiceWorker.addEventListener('statechange', function(statechangeevent) { ... } )` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange`
(script-url this)
Property.
Returns the ServiceWorker serialized script URL defined as part ServiceWorkerRegistration. Must be on the same origin as the that registers the ServiceWorker.
someURL = ServiceWorker.scriptURL
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL
Property. Returns the ServiceWorker serialized script URL defined as part ServiceWorkerRegistration. Must be on the same origin as the that registers the ServiceWorker. `someURL = ServiceWorker.scriptURL` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL`
(set-onerror! this val)
Property.
The AbstractWorker.onerror property of the web.AbstractWorker
represents an web.EventHandler
, that is a function to be called
the error event occurs and bubbles through the web.Worker
.
myWorker.onerror = function() { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror
Property. The AbstractWorker.onerror property of the `web.AbstractWorker` represents an `web.EventHandler`, that is a function to be called the error event occurs and bubbles through the `web.Worker`. `myWorker.onerror = function() { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AbstractWorker/onerror`
(set-onstatechange! this val)
Property.
An web.EventListener
property called whenever an event of type
is fired; it is basically fired anytime the web.ServiceWorker.state
ServiceWorker.onstatechange = function(statechangeevent) { ... } ServiceWorker.addEventListener('statechange', function(statechangeevent) { ... } )
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange
Property. An `web.EventListener` property called whenever an event of type is fired; it is basically fired anytime the `web.ServiceWorker.state` `ServiceWorker.onstatechange = function(statechangeevent) { ... } ServiceWorker.addEventListener('statechange', function(statechangeevent) { ... } )` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange`
(set-script-url! this val)
Property.
Returns the ServiceWorker serialized script URL defined as part ServiceWorkerRegistration. Must be on the same origin as the that registers the ServiceWorker.
someURL = ServiceWorker.scriptURL
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL
Property. Returns the ServiceWorker serialized script URL defined as part ServiceWorkerRegistration. Must be on the same origin as the that registers the ServiceWorker. `someURL = ServiceWorker.scriptURL` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL`
(set-state! this val)
Property.
The state read-only property of the web.ServiceWorker
interface
a string representing the current state of the service worker.
can be one of the following values: installing, installed, activating,
or redundant.
someURL = ServiceWorker.state
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state
Property. The state read-only property of the `web.ServiceWorker` interface a string representing the current state of the service worker. can be one of the following values: installing, installed, activating, or redundant. `someURL = ServiceWorker.state` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state`
(state this)
Property.
The state read-only property of the web.ServiceWorker
interface
a string representing the current state of the service worker.
can be one of the following values: installing, installed, activating,
or redundant.
someURL = ServiceWorker.state
See also: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state
Property. The state read-only property of the `web.ServiceWorker` interface a string representing the current state of the service worker. can be one of the following values: installing, installed, activating, or redundant. `someURL = ServiceWorker.state` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close