Add failsafe to remove loading screen after 15 seconds to prevent infinite lockouts

This commit is contained in:
CodeDevMLH
2026-03-23 18:34:33 +01:00
parent 9abcdf522d
commit 71d9cddebb

View File

@@ -340,6 +340,15 @@ const initLoadingScreen = () => {
}); });
}); });
}; };
// Global Failsafe, force remove loading screen after 15 seconds to prevent infinite lockouts
setTimeout(() => {
const loader = document.querySelector(".bar-loading");
if (loader) {
console.warn("🎬 Media Bar:", "Loading screen timed out! Forcing removal as a failsafe.");
finishLoading();
}
}, 15000);
}; };
/** /**