Search completed in 1.26 seconds.
4 results for "controllerchange":
ServiceWorkerContainer.oncontrollerchange - Web APIs
the on
controllerchange property of the serviceworkercontainer interface is an event handler fired whenever a
controllerchange event occurs — when the document's associated serviceworkerregistration acquires a new active worker.
... syntax serviceworkercontainer.on
controllerchange = function(
controllerchangeevent) { ...
... } example // tbd specifications specification status comment service workersthe definition of 'serviceworkercontainer: on
controllerchange' in that specification.
ServiceWorkerContainer - Web APIs
events
controllerchange occurs when the document's associated serviceworkerregistration acquires a new active worker.
... also available via the serviceworkercontainer.on
controllerchange property.
... navigator.serviceworker.on
controllerchange = function() { console.log('this page is now controlled by:', navigator.serviceworker.controller); }; } else { console.log('service workers are not supported.'); } specifications specification status comment service workersthe definition of 'serviceworkercontainer' in that specification.
Index - Web APIs
this triggers a "
controllerchange" event on navigator.serviceworker in any clients that become controlled by this service worker.
... 3945 serviceworkercontainer.on
controllerchange api, experimental, interface, property, reference, service workers, serviceworker, serviceworkercontainer, onchange the on
controllerchange property of the serviceworkercontainer interface is an event handler fired whenever a
controllerchange event occurs — when the document's associated serviceworkerregistration acquires a new serviceworkerregistration.active worker.
Clients.claim() - Web APIs
this triggers a "
controllerchange" event on navigator.serviceworker in any clients that become controlled by this service worker.