Skip to content

Commit 14cd47e

Browse files
committed
fix: flashing splash screen should not come in tauri windows builds
1 parent d72eb40 commit 14cd47e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@
400400
window.splashScreenPresent = true;
401401

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

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

0 commit comments

Comments
 (0)