From c93faa95645aca4a324c920c606e9b66a59dd4f4 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Sun, 13 Nov 2022 00:30:18 +0100 Subject: [PATCH] show intro only when coming to root url --- repl/src/App.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repl/src/App.jsx b/repl/src/App.jsx index e62d8c1b..addb3204 100644 --- a/repl/src/App.jsx +++ b/repl/src/App.jsx @@ -162,6 +162,9 @@ function App() { // init code useEffect(() => { initCode().then((decoded) => { + if (decoded) { + setActiveFooter('console'); + } logger( `Welcome to Strudel! ${ decoded ? `I have loaded the code from the URL.` : `A random code snippet named "${name}" has been loaded!`