mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-21 20:55:12 -04:00
show intro only when coming to root url
This commit is contained in:
@@ -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!`
|
||||
|
||||
Reference in New Issue
Block a user