From 40e9da566e2630f847d3c39b3df84e59d11f2c97 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 2 Mar 2021 17:48:38 +0100 Subject: [PATCH] lint compliance --- www/checkup/inner.js | 3 +-- www/checkup/main.js | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/www/checkup/inner.js b/www/checkup/inner.js index 690bfde24..f752bc2ad 100644 --- a/www/checkup/inner.js +++ b/www/checkup/inner.js @@ -1,5 +1,4 @@ define([ - 'jquery', -], function ($) { +], function () { console.log('inner loaded'); }); diff --git a/www/checkup/main.js b/www/checkup/main.js index 5a6630c6f..06b69e12b 100644 --- a/www/checkup/main.js +++ b/www/checkup/main.js @@ -12,14 +12,13 @@ define([ '/common/common-util.js', '/common/pinpad.js', '/common/outer/network-config.js', - '/bower_components/netflux-websocket/netflux-client.js', '/bower_components/tweetnacl/nacl-fast.min.js', 'css!/bower_components/components-font-awesome/css/font-awesome.min.css', 'less!/customize/src/less2/pages/page-checkup.less', ], function ($, ApiConfig, Assertions, h, Messages, DomReady, nThen, SFCommonO, Login, Hash, Util, Pinpad, - NetConfig, Netflux) { + NetConfig) { var assert = Assertions(); var trimSlashes = function (s) { @@ -69,7 +68,7 @@ define([ DomReady.onReady(waitFor()); }).nThen(function (waitFor) { to = setTimeout(function () { - console.error('TIMEOUT loading iframe on the safe domain') + console.error('TIMEOUT loading iframe on the safe domain'); cb(false); }, 5000); SFCommonO.initIframe(waitFor); @@ -120,7 +119,7 @@ define([ var RT, rpc, exists; nThen(function (waitFor) { - Util.fetch(blockUrl, waitFor(function (err, block) { + Util.fetch(blockUrl, waitFor(function (err) { if (err) { return; } // No block found exists = true; })); @@ -167,7 +166,7 @@ define([ })); }).nThen(function (waitFor) { // Read block - Util.fetch(blockUrl, waitFor(function (e, block) { + Util.fetch(blockUrl, waitFor(function (e) { if (e) { waitFor.abort(); console.error("Can't read login block", e);