(target: HTMLElement | Document | Window)
| 21 | } |
| 22 | |
| 23 | function getTargetLabel(target: HTMLElement | Document | Window): string { |
| 24 | if (typeof document !== 'undefined' && target === document) { |
| 25 | return 'document' |
| 26 | } |
| 27 | if (typeof window !== 'undefined' && target === window) { |
| 28 | return 'window' |
| 29 | } |
| 30 | if (target instanceof HTMLElement) { |
| 31 | return target.tagName.toLowerCase() |
| 32 | } |
| 33 | return 'element' |
| 34 | } |
| 35 | |
| 36 | function getTargetTooltip(target: HTMLElement | Document | Window): string { |
| 37 | if (typeof document !== 'undefined' && target === document) { |
no outgoing calls
no test coverage detected
searching dependent graphs…