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:
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…
Reference in New Issue
Block a user