
commit 0f33546fec141b7e7e451d3a15b247f9c8eb472e Author: Arlo Breault <arlolra@gmail.com> Date: Mon Jul 15 09:07:00 2019 +0200 Clean up some linting errors --- proxy/init-badge.js | 8 +++----- proxy/init-webext.js | 2 +- proxy/ui.js | 2 -- proxy/util.js | 1 - 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/proxy/init-badge.js b/proxy/init-badge.js index f85be29..b240456 100644 --- a/proxy/init-badge.js +++ b/proxy/init-badge.js @@ -1,4 +1,4 @@ -/* global TESTING, Util, Params, Config, DebugUI, BadgeUI, UI, Broker, Snowflake */ +/* global Util, Params, Config, UI, Broker, Snowflake, Popup, Parse */ /* UI @@ -41,7 +41,7 @@ class BadgeUI extends UI { setActive(connected) { super.setActive(connected); - turnOn(); + this.turnOn(); } } @@ -83,9 +83,7 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific }; dbg = function(msg) { - if (debug || ((snowflake != null ? snowflake.ui : void 0) instanceof DebugUI)) { - return log(msg); - } + if (debug) { log(msg); } }; update = function() { diff --git a/proxy/init-webext.js b/proxy/init-webext.js index df618e6..0102385 100644 --- a/proxy/init-webext.js +++ b/proxy/init-webext.js @@ -1,4 +1,4 @@ -/* global Util, chrome, Config, WebExtUI, Broker, Snowflake */ +/* global Util, chrome, Config, UI, Broker, Snowflake */ /* eslint no-unused-vars: 0 */ /* diff --git a/proxy/ui.js b/proxy/ui.js index f99affa..09d3d07 100644 --- a/proxy/ui.js +++ b/proxy/ui.js @@ -1,5 +1,3 @@ -/* global chrome, log, update */ - /* All of Snowflake's DOM manipulation and inputs. */ diff --git a/proxy/util.js b/proxy/util.js index 88a9bf6..8fa6d9c 100644 --- a/proxy/util.js +++ b/proxy/util.js @@ -1,4 +1,3 @@ -/* global log */ /* exported Params, DummyRateLimit */ /*
participants (1)
-
cohosh@torproject.org