Skip to content

Commit 3e8845d

Browse files
authored
Implement boot screen removal for iOS 10 compatibility
Added iOS 10 safe boot removal and fallback timer.
1 parent eff322b commit 3e8845d

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

index.html

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,19 @@
150150
let accounts = JSON.parse(localStorage.getItem("accounts") || "[]");
151151

152152
/* FORCE REMOVE BOOT SCREEN (iOS 10 FIX) */
153-
setTimeout(() => {
154-
document.getElementById("boot").style.display = "none";
155-
document.getElementById("app").style.opacity = "1";
156-
}, 4500);
153+
function removeBoot() {
154+
var boot = document.getElementById("boot");
155+
var app = document.getElementById("app");
156+
if (boot) boot.style.display = "none";
157+
if (app) app.style.opacity = "1";
158+
}
159+
160+
/* iOS 10–safe boot removal */
161+
document.addEventListener("DOMContentLoaded", removeBoot);
162+
window.addEventListener("load", removeBoot);
163+
164+
/* Fallback safety timer */
165+
setTimeout(removeBoot, 6000);
157166

158167
function save() {
159168
localStorage.setItem("accounts", JSON.stringify(accounts));
@@ -238,3 +247,4 @@ <h3>${acc.label}</h3>
238247

239248
</body>
240249
</html>
250+

0 commit comments

Comments
 (0)