(anchor: Element, widget: HTMLElement)
| 63 | } |
| 64 | |
| 65 | export function insertAfterElement(anchor: Element, widget: HTMLElement): boolean { |
| 66 | const parent = anchor.parentNode; |
| 67 | if (!parent) { |
| 68 | return false; |
| 69 | } |
| 70 | |
| 71 | parent.insertBefore(widget, anchor.nextSibling); |
| 72 | return true; |
| 73 | } |
no outgoing calls
no test coverage detected