diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-19 13:25:30 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-19 13:25:30 +0100 |
| commit | 56e036b4de1b3d92c0de3f18a0b3ada707ba4c2f (patch) | |
| tree | c89c074312c389c50450836c97355336049b69f6 /src | |
| parent | 04c4ad9a6572167f049b833fc343b8eba819ac46 (diff) | |
Add special case for mastodon user links.
They have a span embedded in the link, so let's look at the parent, too.
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/status/status.js | 3 |
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') } |
