mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-28 05:58:28 +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() {
|
function App() {
|
||||||
const [view, setView] = useState(); // codemirror view
|
const [view, setView] = useState(); // codemirror view
|
||||||
const [lastShared, setLastShared] = useState();
|
const [lastShared, setLastShared] = useState();
|
||||||
const [activeFooter, setActiveFooter] = useState('intro');
|
const [activeFooter, setActiveFooter] = useState('console');
|
||||||
|
|
||||||
// logger
|
// logger
|
||||||
const [log, setLog] = useState([]);
|
const [log, setLog] = useState([]);
|
||||||
@ -162,8 +162,8 @@ function App() {
|
|||||||
// init code
|
// init code
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
initCode().then((decoded) => {
|
initCode().then((decoded) => {
|
||||||
if (decoded) {
|
if (!decoded) {
|
||||||
setActiveFooter('console');
|
setActiveFooter('intro');
|
||||||
}
|
}
|
||||||
logger(
|
logger(
|
||||||
`Welcome to Strudel! ${
|
`Welcome to Strudel! ${
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user