Skip to content

Commit

Permalink
fixing broken innerHTML
Browse files Browse the repository at this point in the history
@Gargron sorry about this one. It looks like I can’t 100% DRY the icon
code out because of innerHTML being used here, so if/when changes are
made to icon code need to remember to make them here too
  • Loading branch information
jpdevries committed Apr 12, 2017
1 parent 1348c7e commit b18d475
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const StatusContent = React.createClass({
} else if (link.textContent[0] === '#' || (link.previousSibling && link.previousSibling.textContent && link.previousSibling.textContent[link.previousSibling.textContent.length - 1] === '#')) {
link.addEventListener('click', this.onHashtagClick.bind(this, link.text), false);
} else if (media) {
link.innerHTML = '<Icon icon="photo" />';
link.innerHTML = '<i class="fa fa-fw fa-photo"></i>';
} else {
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'noopener');
Expand Down

0 comments on commit b18d475

Please sign in to comment.