From 9eaf78f8239cc731b1e7007015abb68fdbefd84c Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 10 Sep 2022 16:14:12 +0200 Subject: xP: open links in a new tab/window --- xP/public/xP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xP') diff --git a/xP/public/xP.js b/xP/public/xP.js index 91a7f75..95ee879 100644 --- a/xP/public/xP.js +++ b/xP/public/xP.js @@ -358,7 +358,7 @@ let Content = { while ((match = re.exec(text)) !== null) { if (end < match.index) a.push(m('span', attrs, text.substring(end, match.index))) - a.push(m('a', {href: match[0], ...attrs}, match[0])) + a.push(m('a[target=_blank]', {href: match[0], ...attrs}, match[0])) end = re.lastIndex } if (end < text.length) -- cgit v1.2.3-70-g09d2