Skip to content

Commit

Permalink
fix: flashing splash screen should not come in tauri windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
abose committed Dec 5, 2023
1 parent d72eb40 commit 14cd47e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@
window.splashScreenPresent = true;

function _removeSplashScreenIfNeeded() {
if(!window.__TAURI__) {
document.getElementById('phoenix-loading-splash-screen-overlay').classList.remove('forced-hidden')
}
if(window.testEnvironment || window.__TAURI__){
// tauri means local builds and, it loads up pretty fast, so splash screen
document.getElementById('phoenix-loading-splash-screen-overlay').remove();
Expand Down Expand Up @@ -501,7 +504,7 @@

</head>
<body id="Phoenix-Main" onload="_loadPhoenixAfterSplashScreen()">
<div id="phoenix-loading-splash-screen-overlay">
<div id="phoenix-loading-splash-screen-overlay" class="forced-hidden">
<iframe id="splash-screen-frame" style="width: 100%; height: 100%;border: none" seamless="true"
title="Phoenix Splash Screen" src="assets/phoenix-splash/index.html"></iframe>
</div>
Expand Down

0 comments on commit 14cd47e

Please sign in to comment.