Add special case for mastodon user links.

They have a span embedded in the link, so let's look at the parent, too.
このコミットが含まれているのは:
Roger Braun 2017-02-19 13:25:30 +01:00
コミット 56e036b4de
1個のファイルの変更3行の追加0行の削除

ファイルの表示

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