Add special case for mastodon user links.

They have a span embedded in the link, so let's look at the parent, too.
feature/user_timelines
Roger Braun 8 years ago
parent 04c4ad9a65
commit 56e036b4de

@ -41,6 +41,9 @@ const Status = {
},
methods: {
linkClicked ({target}) {
if (target.tagName === 'SPAN') {
target = target.parentNode
}
if (target.tagName === 'A') {
window.open(target.href, '_blank')
}

Loading…
Cancel
Save