forked from AkkomaGang/akkoma-fe
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
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ const Status = {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
linkClicked ({target}) {
|
linkClicked ({target}) {
|
||||||
|
if (target.tagName === 'SPAN') {
|
||||||
|
target = target.parentNode
|
||||||
|
}
|
||||||
if (target.tagName === 'A') {
|
if (target.tagName === 'A') {
|
||||||
window.open(target.href, '_blank')
|
window.open(target.href, '_blank')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue