From 1cad1235f253b8791ffb55a7aee563bfe7f43f44 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Mon, 14 Mar 2022 11:06:13 +0100 Subject: [PATCH] rel=noreferrer --- components/REPL/REPLHistory.tsx | 3 ++- pages/index.tsx | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/components/REPL/REPLHistory.tsx b/components/REPL/REPLHistory.tsx index d7112e8..7e56690 100644 --- a/components/REPL/REPLHistory.tsx +++ b/components/REPL/REPLHistory.tsx @@ -36,9 +36,10 @@ const REPLHistory: NextPage = ({history, inputRef}) => { while (idxStart !== -1 && idxSep !== -1 && idxEnd !== -1) { const linkText = line.substring(idxStart+2, idxSep); const linkHref = line.substring(idxSep+1, idxEnd); + const isLocal = linkHref.startsWith("https://c0ntroller.de") || linkHref.startsWith("/"); result.push(line.substring(0, idxStart)); - result.push({linkText}); + result.push({linkText}); line = line.substring(idxEnd+1); idxStart = line.indexOf("#{"); diff --git a/pages/index.tsx b/pages/index.tsx index 1b68b86..62c8527 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -28,17 +28,17 @@ const Home: NextPage = () => {
  - Source + Source | - Bug? + Bug? | - + | - + | - + | - +