aboutsummaryrefslogtreecommitdiffstats
path: root/js/vapi-contextmenu.js
diff options
context:
space:
mode:
authorAlessio Vanni <vannilla@firemail.cc>2019-07-04 17:41:59 +0200
committerAlessio Vanni <vannilla@firemail.cc>2019-07-04 17:41:59 +0200
commit669290775fd9b85fdb8c3fdbaa597c30841803aa (patch)
tree700c76a3bdcde90dd3e8f79d82747e66ec2506d6 /js/vapi-contextmenu.js
parent9d87f8f864b28d182af9659a3095433adb4b0126 (diff)
downloadematrix-669290775fd9b85fdb8c3fdbaa597c30841803aa.tar.lz
ematrix-669290775fd9b85fdb8c3fdbaa597c30841803aa.tar.xz
ematrix-669290775fd9b85fdb8c3fdbaa597c30841803aa.zip
Fix a couple of stylistic choices
Diffstat (limited to 'js/vapi-contextmenu.js')
-rw-r--r--js/vapi-contextmenu.js6
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