Skip to content

Commit

Permalink
Handle case where preload bar is removed from dom
Browse files Browse the repository at this point in the history
  • Loading branch information
hubol committed Dec 8, 2023
1 parent c669cd3 commit 3359323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
<noscript>JavaScript&trade; is required to play this game.</noscript>
</body>

<script>setTimeout(() => !preload.style.opacity && (preload.style.opacity = '1'), 250)</script>
<script>setTimeout(() => typeof preload !== 'undefined' && !preload.style.opacity && (preload.style.opacity = '1'), 250)</script>
<script src="index.js" type="module"></script>
</html>

0 comments on commit 3359323

Please sign in to comment.