(headElement: HTMLElement, probe: HTMLElement)
| 111 | // Measured in the card layout at the top of the document: the full page |
| 112 | // stands as far above the card as the band is tall above the status bar. |
| 113 | const measure = (headElement: HTMLElement, probe: HTMLElement): Geometry => { |
| 114 | const edge = headElement.getBoundingClientRect().top + window.scrollY; |
| 115 | const full = Math.max(titleLine, titleLine + edge - probe.offsetHeight); |
| 116 | |
| 117 | return { |
| 118 | card: titleLine, |
| 119 | full, |
| 120 | edge, |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | const hostOf = (url?: string): string => { |
| 125 | if (!url) { |
no outgoing calls
no test coverage detected