mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-14 07:08:34 +00:00
show intro only when coming to root url
This commit is contained in:
parent
ce6495a46d
commit
c93faa9564
@ -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…
x
Reference in New Issue
Block a user