Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Nov 6, 2023
1 parent 50d9a4f commit d0ea589
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js&css/web-accessible/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ ImprovedTube.ytElementsHandler = function (node) {
}
else if (name === 'YTD-TOGGLE-BUTTON-RENDERER' || name === 'YTD-PLAYLIST-LOOP-BUTTON-RENDERER') {
if (
node.parentComponent &&
node.parentComponent.nodeName === 'YTD-MENU-RENDERER' &&
node.parentComponent.parentComponent &&
node.parentComponent.parentComponent.nodeName === 'YTD-PLAYLIST-PANEL-RENDERER'
node.closest("YTD-MENU-RENDERER") &&
node.closest("YTD-PLAYLIST-PANEL-RENDERER")
) {
var index = Array.prototype.indexOf.call(node.parentNode.children, node);

Expand Down

0 comments on commit d0ea589

Please sign in to comment.