(link: HTMLElement)
| 33 | } |
| 34 | |
| 35 | function addAvatar(link: HTMLElement): void { |
| 36 | const username = link.textContent; |
| 37 | const avatar = createAvatar(username, 14); |
| 38 | avatar.classList.add('v-align-text-bottom', 'mr-1', 'tmp-mr-1'); |
| 39 | |
| 40 | link.classList.add('d-inline-block', 'lh-condensed-ultra'); |
| 41 | link.prepend(avatar); |
| 42 | } |
| 43 | |
| 44 | function addMentionAvatar(link: HTMLAnchorElement): void { |
| 45 | // Don't use textContent #8389 |
nothing calls this directly
no test coverage detected