(currentUser: string | null)
| 83 | } |
| 84 | |
| 85 | public setCurrentUser(currentUser: string | null) { |
| 86 | if (this.currentUser === currentUser) { |
| 87 | return; |
| 88 | } |
| 89 | this.currentUser = currentUser; |
| 90 | |
| 91 | if (this.comment.user.login === this.currentUser) { |
| 92 | this.element.classList.add('current-user'); |
| 93 | } else { |
| 94 | this.element.classList.remove('current-user'); |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | export function processRenderedMarkdown(markdownBody: Element) { |