Skip to content
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.

hide contextmenu for Audio element #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

hide contextmenu for Audio element #32

wants to merge 1 commit into from

Conversation

samharwood
Copy link

hide contextmenu for Audio element. (This was crashing Firefox for me)

hide contextmenu for Audio element. (This was crashing Firefox for me)
var menuitems = document.querySelectorAll('menuitem[id^="context-imagetweak-"], menuseparator[id^="context-imagetweak-"]');
for (var i=0; i<menuitems.length; i++)
menuitems[i].hidden = true;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an extra closing curly brace ( } ) here (closing the else if condition on line 45).

Otherwise, this fix appears to work great. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants