(target: Element)
| 217 | } |
| 218 | |
| 219 | function setupMatchObserver(target: Element) { |
| 220 | hintMatchObserver?.disconnect(); |
| 221 | if (checkMatch(target)) { |
| 222 | return; |
| 223 | } |
| 224 | hintMatchObserver = new MutationObserver(() => checkMatch(target)); |
| 225 | hintMatchObserver.observe(target, {attributes: true}); |
| 226 | } |
| 227 | |
| 228 | const target = document.querySelector(hint.target); |
| 229 | if (target) { |
no test coverage detected