fix(nav): inject request tab via FT HTTP endpoint

File Transformation reflection callbacks often fail across plugin load contexts; register an anonymous TransformIndexHtml endpoint as the reliable injection path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michael SloanandCursor committed 2026-08-02 17:25:31 -04:00
1 parent e260677dab
commit bfa8115fd0
9 files changed
+79 -31

No files matched your search

+6 -2
View File
@@ -29,12 +29,15 @@
}
function isHomeTabContext() {
const hash = window.location.hash || "";
const hash = (window.location.hash || "").toLowerCase();
const onHomeHash = hash === ""
|| hash === "#"
|| hash === "#/home"
|| hash === "#/home.html"
|| hash === "#home"
|| hash.indexOf("#/home?") === 0
|| hash.indexOf("#/home.html?") === 0;
|| hash.indexOf("#/home.html?") === 0
|| hash.indexOf("#home?") === 0;
if (!onHomeHash) {
return false;
}
@@ -393,6 +396,7 @@
}
function boot() {
console.info("[Jellyfin.Plugin.Request] nav-loader active");
ensureRequestTab();
document.addEventListener("viewshow", (event) => {
if (event.target && event.target.id === "indexPage") {