Skip to content

Commit

Permalink
fix(compat): Modify element insert location for Jellyfin Mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Izumiko committed Nov 7, 2024
1 parent 6b687e9 commit fb9d589
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ede.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
is: 'paper-icon-button-light',
};
const uiAnchorStr = 'pause';
const uiQueryStr = '.osdTimeText';
const uiQueryStr = '.btnPause';
const mediaContainerQueryStr = "div[data-type='video-osd']";
const mediaQueryStr = 'video';

Expand Down Expand Up @@ -571,7 +571,7 @@
let uiEle = null;
document.querySelectorAll(uiQueryStr).forEach(function (element) {
if (element.offsetParent != null) {
uiEle = element;
uiEle = element.parentNode;
}
});
if (uiEle == null) {
Expand All @@ -585,7 +585,7 @@
menubar.style.opacity = 0.5;
}

parent.insertBefore(menubar, uiEle);
parent.insertBefore(menubar, uiEle.nextSibling);
// 弹幕开关
displayButtonOpts.class = danmaku_icons[window.ede.danmakuSwitch];
menubar.appendChild(createButton(displayButtonOpts));
Expand Down

0 comments on commit fb9d589

Please sign in to comment.