const loader = document.getElementById('flutter-loading'); if (loader && !loader.classList.contains('hidden')) { console.warn('Splash still visible after visibility change, removing'); loader.classList.add('hidden'); setTimeout(function() { if (loader && loader.parentNode) { loader.remove(); } }, 400); } }, 2000); } });
const loader = document.getElementById('flutter-loading'); if (loader && !loader.classList.contains('hidden')) { console.warn('Splash still visible after visibility change, removing'); loader.classList.add('hidden'); setTimeout(function() { if (loader && loader.parentNode) { loader.remove(); } }, 400); } }, 2000); } });