Fix Issue 199: Null check on menu container

This commit is contained in:
mphelp committed 2021-12-06 08:07:11 -06:00
1 parent 3bca601e3d
commit 672c6db3f3
3 files changed
+3 -3

No files matched your search

@@ -37,7 +37,7 @@ function getButtons() {
if (isMobile) {
return document.querySelector(".slim-video-action-bar-actions");
}
if (document.getElementById("menu-container").offsetParent === null) {
if (document.getElementById("menu-container")?.offsetParent === null) {
return document.querySelector("ytd-menu-renderer.ytd-watch-metadata > div");
} else {
return document