MCPcopy
hub / github.com/angular/angular / onControllerChange

Function onControllerChange

packages/service-worker/src/provider.ts:55–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 // traffic.
54 const sw = navigator.serviceWorker;
55 const onControllerChange = () => sw.controller?.postMessage({action: 'INITIALIZE'});
56
57 sw.addEventListener('controllerchange', onControllerChange);
58

Callers

nothing calls this directly

Calls 1

postMessageMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…