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

Function initConfig

packages/ui-default/service-worker.ts:123–128  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

121let config: ServiceWorkerConfig = null;
122
123function initConfig(cfg) {
124 config = cfg;
125 config.hosts ||= [];
126 config.domains = Array.from(new Set([location.host, ...(config.domains || [])]));
127 console.log('Config:', config);
128}
129
130self.addEventListener('install', (event) => event.waitUntil((async () => {
131 if (process.env.NODE_ENV === 'production' && config?.preload) {

Callers 1

service-worker.tsFile · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected