Skip to content

Commit

Permalink
Hide embed splash when JS bundle loads
Browse files Browse the repository at this point in the history
This was broken by the window.SplashEnd refactor
  • Loading branch information
GarboMuffin committed Jun 2, 2024
1 parent 76aac20 commit abe24b0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/playground/embed.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
text-align: center;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.splash-screen[hidden],
.tw-loaded .splash-screen {
.splash-screen[hidden] {
display: none;
}
.splash-spinner:after {
Expand Down Expand Up @@ -59,8 +58,18 @@
<b>Did you know?</b> The first Pride march was held on June 28, 1970, one year after the Stonewall riots.
</div>
</div>

<script>
document.getElementById("splash-need-js").hidden = false;
(function() {
'use strict';
var splash = document.getElementById('splash-need-js');
splash.hidden = false;
window.SplashEnd = () => {
splash.hidden = true;
};
}());
</script>

<div id="app"></div>
Expand Down

0 comments on commit abe24b0

Please sign in to comment.