mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 19:13:54 +00:00
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:
parent
56f071248f
commit
6febf90fdb
2 changed files with 8 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue