MCPcopy
hub / github.com/GoogleChrome/workbox / match

Function match

packages/workbox-google-analytics/src/initialize.ts:131–133  ·  view source on GitHub ↗
({url}: RouteMatchCallbackOptions)

Source from the content-addressed store, hash-verified

129 */
130const createCollectRoutes = (bgSyncPlugin: BackgroundSyncPlugin) => {
131 const match = ({url}: RouteMatchCallbackOptions) =>
132 url.hostname === GOOGLE_ANALYTICS_HOST &&
133 COLLECT_PATHS_REGEX.test(url.pathname);
134
135 const handler = new NetworkOnly({
136 plugins: [bgSyncPlugin],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected