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
|
// init code
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
initCode().then((decoded) => {
|
initCode().then((decoded) => {
|
||||||
|
if (decoded) {
|
||||||
|
setActiveFooter('console');
|
||||||
|
}
|
||||||
logger(
|
logger(
|
||||||
`Welcome to Strudel! ${
|
`Welcome to Strudel! ${
|
||||||
decoded ? `I have loaded the code from the URL.` : `A random code snippet named "${name}" has been loaded!`
|
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