(container: HTMLElement | undefined)
| 13 | } |
| 14 | |
| 15 | export function getViewerHost(container: HTMLElement | undefined) { |
| 16 | if (!container) return |
| 17 | const host = container.querySelector("diffs-container") |
| 18 | if (!(host instanceof HTMLElement)) return |
| 19 | return host |
| 20 | } |
| 21 | |
| 22 | export function getViewerRoot(container: HTMLElement | undefined) { |
| 23 | return getViewerHost(container)?.shadowRoot ?? undefined |
no outgoing calls
no test coverage detected