show intro only when coming to root url

This commit is contained in:
Felix Roos 2022-11-13 00:30:18 +01:00
parent ce6495a46d
commit c93faa9564

View File

@ -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!`