Wait to show about links until we know what they will be

This ensures we don't have an experience where images flicker in at diffent times.
This commit is contained in:
Jordan Eldredge 2019-03-23 14:21:03 -07:00
parent 56f071248f
commit 6febf90fdb
2 changed files with 8 additions and 2 deletions

View file

@ -25,10 +25,14 @@ body {
/* Let users drag windows over this text */
z-index: -1;
margin: 0;
display: flex;
display: none;
flex-direction: row;
}
.about.loaded {
display: flex;
}
.about a {
display: flex;
}

View file

@ -113,14 +113,16 @@ window.addEventListener("beforeinstallprompt", e => {
Raven.context(async () => {
window.Raven = Raven;
const about = document.getElementsByClassName("about")[0];
if (screenshot) {
document.getElementsByClassName("about")[0].style.visibility = "hidden";
about.style.visibility = "hidden";
}
if (!WebampLazy.browserIsSupported()) {
document.getElementById("browser-compatibility").style.display = "block";
document.getElementById("app").style.visibility = "hidden";
return;
}
about.classList.add("loaded");
let __butterchurnOptions = null;
let __initialWindowLayout = null;