(document: Document)
| 85 | } |
| 86 | |
| 87 | function getActiveTarget(document: Document) { |
| 88 | const active = getActiveElement(document) |
| 89 | return active?.tagName === 'BODY' ? null : active |
| 90 | } |
| 91 | |
| 92 | export function restoreFocus(HTMLElement: typeof globalThis['HTMLElement']) { |
| 93 | if (HTMLElement.prototype[patched]) { |
no test coverage detected