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:
1 parent
e260677dab
commit
bfa8115fd0
9 files changed
+79
-31
No files matched your search
@@ -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") {
|
||||
|
||||
Reference in new issue
Block a user