mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-29 01:17:55 +01:00
Merge pull request #229 from mphelp/issue-199
Fix Issue 199: (Bug): Cannot read properties of null (reading 'offsetParent')
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -20,7 +20,7 @@ function cLog(message, writer) {
|
||||
|
||||
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");
|
||||
//--- If Menu Element Isnt Displayed: ---//
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user