commit: 56e036b4de1b3d92c0de3f18a0b3ada707ba4c2f
parent: 04c4ad9a6572167f049b833fc343b8eba819ac46
Author: Roger Braun <roger@rogerbraun.net>
Date: Sun, 19 Feb 2017 13:25:30 +0100
Add special case for mastodon user links.
They have a span embedded in the link, so let's look at the parent, too.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/components/status/status.js b/src/components/status/status.js
@@ -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')
}