From 04c4ad9a6572167f049b833fc343b8eba819ac46 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 19 Feb 2017 12:58:25 +0100 Subject: Open clicked links the statusnet_html in a new window. --- src/components/attachment/attachment.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/components/attachment/attachment.js') diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index c88497a2..57d21b28 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -20,6 +20,11 @@ const Attachment = { } }, methods: { + linkClicked ({target}) { + if (target.tagName === 'A') { + window.open(target.href, '_blank') + } + }, toggleHidden () { this.showHidden = !this.showHidden } -- cgit v1.2.3-70-g09d2