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

Function getViewerRoot

packages/session-ui/src/pierre/file-runtime.ts:22–24  ·  view source on GitHub ↗
(container: HTMLElement | undefined)

Source from the content-addressed store, hash-verified

20}
21
22export function getViewerRoot(container: HTMLElement | undefined) {
23 return getViewerHost(container)?.shadowRoot ?? undefined
24}
25
26export function applyViewerScheme(host: HTMLElement | undefined) {
27 if (!host) return

Callers 1

getRootFunction · 0.90

Calls 1

getViewerHostFunction · 0.85

Tested by

no test coverage detected