mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
just in case
This commit is contained in:
parent
eb5cc6b3fc
commit
be2f2bbb0f
@ -69,6 +69,11 @@ var onContextMenuClicked = function(details, tab) {
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var toggleMenu = function(on) {
|
var toggleMenu = function(on) {
|
||||||
|
// In case the permission for contextMenu was not granted.
|
||||||
|
if ( chrome.contextMenus === undefined ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// This needs to be local scope: we can't reuse it for more than one
|
// This needs to be local scope: we can't reuse it for more than one
|
||||||
// menu creation call.
|
// menu creation call.
|
||||||
var menuCreateDetails = {
|
var menuCreateDetails = {
|
||||||
|
Loading…
Reference in New Issue
Block a user