aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-02-19 13:25:30 +0100
committerRoger Braun <roger@rogerbraun.net>2017-02-19 13:25:30 +0100
commit56e036b4de1b3d92c0de3f18a0b3ada707ba4c2f (patch)
treec89c074312c389c50450836c97355336049b69f6
parent04c4ad9a6572167f049b833fc343b8eba819ac46 (diff)
Add special case for mastodon user links.
They have a span embedded in the link, so let's look at the parent, too.
-rw-r--r--src/components/status/status.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index e75400cb..46add8aa 100644
--- 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')
}