Add special case for mastodon user links.

They have a span embedded in the link, so let's look at the parent, too.
This commit is contained in:
Roger Braun 2017-02-19 13:25:30 +01:00
parent 04c4ad9a65
commit 56e036b4de

View File

@ -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')
}