mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-24 15:23:02 +01:00
Fix Issue 199: Null check on menu container
This commit is contained in:
1 parent
3bca601e3d
commit
672c6db3f3
3 files changed
+3
-3
No files matched your search
@@ -20,7 +20,7 @@ const NEUTRAL_STATE = "NEUTRAL_STATE";
|
||||
function getButtons() {
|
||||
|
||||
//--- If Menu Element Is Displayed: ---//
|
||||
if (document.getElementById('menu-container').offsetParent === null) {
|
||||
if (document.getElementById('menu-container')?.offsetParent === null) {
|
||||
return document.querySelector(
|
||||
"ytd-menu-renderer.ytd-watch-metadata > div"
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user