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.workers.AbstractWorker
represents an EventHandler, that is a function to be called
the error event occurs and bubbles through the web.workers.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.workers.AbstractWorker`
represents an `EventHandler`, that is a function to be called
the error event occurs and bubbles through the `web.workers.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 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 `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.workers.AbstractWorker
represents an EventHandler, that is a function to be called
the error event occurs and bubbles through the web.workers.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.workers.AbstractWorker`
represents an `EventHandler`, that is a function to be called
the error event occurs and bubbles through the `web.workers.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 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 `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.workers.ServiceWorker
returns a string representing the current state of the service
It can be one of the following values: installing, installed,
activated, 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.workers.ServiceWorker` returns a string representing the current state of the service It can be one of the following values: installing, installed, activated, 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.workers.ServiceWorker
returns a string representing the current state of the service
It can be one of the following values: installing, installed,
activated, 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.workers.ServiceWorker` returns a string representing the current state of the service It can be one of the following values: installing, installed, activated, or redundant. `someURL = ServiceWorker.state` See also: `https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |