Skip to content

Commit

Permalink
fix(tickets): external link warning in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed May 28, 2022
1 parent f739eac commit c2cb0df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/client/containers/Tickets/CommentNotePartial.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ const setupImages = parent => {
imagesEl.forEach(i => helpers.setupImageLink(i))
}

const setupLinks = parent => {
const linksEl = parent.body.querySelectorAll('a')
linksEl.forEach(i => helpers.setupLinkWarning(i))
}

class CommentNotePartial extends React.Component {
componentDidMount () {
setupImages(this)
setupLinks(this)
}

componentDidUpdate () {
setupImages(this)
setupLinks(this)
}

componentWillUnmount () {}
Expand Down

0 comments on commit c2cb0df

Please sign in to comment.