show intro only when coming to root url
This commit is contained in:
parent
ce6495a46d
commit
c93faa9564
1 changed files with 3 additions and 0 deletions
|
|
@ -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!`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue