Fix for mobile routing

This commit is contained in:
M0RPH3US authored and GitHub committed 2025-02-19 22:32:06 +05:30
1 parent 9a2e04b5ae
commit 6dc9518b55
1 file changed
+9 -6
+9 -6
View File
@@ -12,16 +12,19 @@ const getJellyfinCredentials = () => {
console.error("Could not parse jellyfin credentials", e);
}
};
const initLoadingScreen = () => {
const currentPath = window.location.href;
const currentPath = window.location.href.toLowerCase();
if (
currentPath.includes("/web/#/home.html") ||
currentPath.includes("/web/index.html#/home.html")
currentPath.includes("/web/#/home.html") ||
currentPath.includes("/web/index.html#/home.html") ||
currentPath.endsWith("/web/")
) {
const loadingHTML = `
const loadingHTML = `
<div class="bar-loading">
<h1>
<img src="https://raw.githubusercontent.com/jellyfin/jellyfin-ux/refs/heads/master/branding/android/logo_clean.svg"
<img src="https://i.imgur.com/DAYQRfa.png"
alt="Server Logo"
style="width: 250px; height: auto;">
</h1>
@@ -30,7 +33,7 @@ const initLoadingScreen = () => {
</div>
</div>
`;
document.body.insertAdjacentHTML("beforeend", loadingHTML);
document.body.insertAdjacentHTML("beforeend", loadingHTML);
}
};
initLoadingScreen();