diff options
Diffstat (limited to 'js/vapi-contextmenu.js')
-rw-r--r-- | js/vapi-contextmenu.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/vapi-contextmenu.js b/js/vapi-contextmenu.js index 70229da..34c4263 100644 --- a/js/vapi-contextmenu.js +++ b/js/vapi-contextmenu.js @@ -114,7 +114,7 @@ contextMenu.insertBefore(menuitem, doc.getElementById('inspect-separator')); }; - var registerSafely = function (doc, tryCount) { + let registerSafely = function (doc, tryCount) { // https://github.com/gorhill/uBlock/issues/906 // Be sure document.readyState is 'complete': it could happen // at launch time that we are called by @@ -130,7 +130,7 @@ } tryCount += 1; - if ( tryCount < 8) { + if (tryCount < 8) { vAPI.setTimeout(registerSafely.bind(this, doc, tryCount), 200); } }; @@ -159,8 +159,6 @@ this.menuLabel = details.title; this.contexts = details.contexts; - console.debug(this.menuItemId); - if (Array.isArray(this.contexts) && this.contexts.length) { this.contexts = this.contexts.indexOf('all') === -1 ? this.contexts |