Skip to content

Commit

Permalink
Update general.js
Browse files Browse the repository at this point in the history
  • Loading branch information
raszpl authored Jun 17, 2024
1 parent 83e197a commit a66054a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js&css/extension/www.youtube.com/general/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ extension.features.thumbnailsQuality = function (anything) {
--------------------------------------------------------------*/
extension.features.disableThumbnailPlayback = function (event) {
if (event instanceof Event) {
if (event.composedPath().find(elem => (elem.matches != null && elem.matches('#content.ytd-rich-item-renderer, #contents.ytd-item-section-renderer'))
if (event.composedPath().some(elem => (elem.matches != null && elem.matches('#content.ytd-rich-item-renderer, #contents.ytd-item-section-renderer'))
)) {
event.stopImmediatePropagation();
}
Expand Down

0 comments on commit a66054a

Please sign in to comment.