Hide cast and browser default menu items in extension pages

This commit is contained in:
hensm
2020-02-15 08:19:41 +00:00
parent 705a676fe3
commit ae82679a8f
3 changed files with 23 additions and 0 deletions

View File

@@ -361,3 +361,9 @@ window.addEventListener("load", () => {
<PopupApp />
, document.querySelector("#root"));
});
window.addEventListener("contextmenu", () => {
browser.menus.overrideContext({
showDefaults: false
});
});