MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / sendConfig

Function sendConfig

packages/ui-default/entry.js:34–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32} catch (e) { }
33if ('serviceWorker' in navigator) {
34 const sendConfig = () => fetch('/service-worker-config', {
35 method: 'POST',
36 headers: { 'Content-Type': 'application/json' },
37 body: JSON.stringify(UiContext.SWConfig),
38 });
39 navigator.serviceWorker.register('/service-worker.js').then((registration) => {
40 console.log('SW registered: ', registration);
41 const sw = registration.active || registration.waiting || registration.installing;

Callers 1

entry.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected