home · contact · privacy
Open in-terminal links in separate window.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 25 Nov 2020 05:15:13 +0000 (06:15 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 25 Nov 2020 05:15:13 +0000 (06:15 +0100)
rogue_chat.html

index 49fdda0bc8480e7ef0bd2577d63dd6effa031625..a8b6ba70338b400e94929ee5504e1cc7bbe055f7 100644 (file)
@@ -253,7 +253,7 @@ let terminal = {
               let start_x = 0;
               for (let span of tui.links[y]) {
                   chunks.push(escapeHTML(line.slice(start_x, span[0])));
-                  chunks.push('<a href="');
+                  chunks.push('<a target="_blank" href="');
                   chunks.push(escapeHTML(span[2]));
                   chunks.push('">');
                   chunks.push(escapeHTML(line.slice(span[0], span[1])));