mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-13 14:48:36 +00:00
prevent flicker
This commit is contained in:
parent
c93faa9564
commit
c722904831
@ -109,7 +109,7 @@ const isEmbedded = window.location !== window.parent.location;
|
||||
function App() {
|
||||
const [view, setView] = useState(); // codemirror view
|
||||
const [lastShared, setLastShared] = useState();
|
||||
const [activeFooter, setActiveFooter] = useState('intro');
|
||||
const [activeFooter, setActiveFooter] = useState('console');
|
||||
|
||||
// logger
|
||||
const [log, setLog] = useState([]);
|
||||
@ -162,8 +162,8 @@ function App() {
|
||||
// init code
|
||||
useEffect(() => {
|
||||
initCode().then((decoded) => {
|
||||
if (decoded) {
|
||||
setActiveFooter('console');
|
||||
if (!decoded) {
|
||||
setActiveFooter('intro');
|
||||
}
|
||||
logger(
|
||||
`Welcome to Strudel! ${
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user