Skip to content

Commit

Permalink
fix context menus blocking in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbl committed Jul 14, 2022
1 parent f4e928d commit 20ce09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@
}

function menuOnTap(event) {
const menuAction = this.getElementsByTagName('yt-formatted-string')[0].textContent;
const menuAction = this.getElementsByTagName('yt-formatted-string')[0].getRawText();
if (!['Block Channel', 'Block Video'].includes(menuAction)) {
if (this.onTap) this.onTap(event);
else if (this.onTap_) this.onTap_(event);
Expand Down

0 comments on commit 20ce09d

Please sign in to comment.