MCPcopy Create free account
hub / github.com/anomalyco/opencode / handler

Function handler

packages/app/src/pages/layout.tsx:1279–1284  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

1277
1278 onMount(() => {
1279 const handler = (event: Event) => {
1280 const detail = (event as CustomEvent<{ urls: string[] }>).detail
1281 const urls = detail?.urls ?? []
1282 if (urls.length === 0) return
1283 handleDeepLinks(urls)
1284 }
1285
1286 handleDeepLinks(drainPendingDeepLinks(window))
1287 makeEventListener(window, deepLinkEvent, handler as EventListener)

Callers 7

handlerLayerFunction · 0.50
emitFunction · 0.50
emitFunction · 0.50
subscribeFunction · 0.50
onFunction · 0.50
runHandlerFunction · 0.50
makeRecordingSocketFunction · 0.50

Calls 1

handleDeepLinksFunction · 0.85

Tested by 1

emitFunction · 0.40