File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments