lint compliance

pull/1/head
yflory 4 years ago
parent b0e0a8dc75
commit 40e9da566e

@ -1,5 +1,4 @@
define([ define([
'jquery', ], function () {
], function ($) {
console.log('inner loaded'); console.log('inner loaded');
}); });

@ -12,14 +12,13 @@ define([
'/common/common-util.js', '/common/common-util.js',
'/common/pinpad.js', '/common/pinpad.js',
'/common/outer/network-config.js', '/common/outer/network-config.js',
'/bower_components/netflux-websocket/netflux-client.js',
'/bower_components/tweetnacl/nacl-fast.min.js', '/bower_components/tweetnacl/nacl-fast.min.js',
'css!/bower_components/components-font-awesome/css/font-awesome.min.css', 'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
'less!/customize/src/less2/pages/page-checkup.less', 'less!/customize/src/less2/pages/page-checkup.less',
], function ($, ApiConfig, Assertions, h, Messages, DomReady, ], function ($, ApiConfig, Assertions, h, Messages, DomReady,
nThen, SFCommonO, Login, Hash, Util, Pinpad, nThen, SFCommonO, Login, Hash, Util, Pinpad,
NetConfig, Netflux) { NetConfig) {
var assert = Assertions(); var assert = Assertions();
var trimSlashes = function (s) { var trimSlashes = function (s) {
@ -69,7 +68,7 @@ define([
DomReady.onReady(waitFor()); DomReady.onReady(waitFor());
}).nThen(function (waitFor) { }).nThen(function (waitFor) {
to = setTimeout(function () { to = setTimeout(function () {
console.error('TIMEOUT loading iframe on the safe domain') console.error('TIMEOUT loading iframe on the safe domain');
cb(false); cb(false);
}, 5000); }, 5000);
SFCommonO.initIframe(waitFor); SFCommonO.initIframe(waitFor);
@ -120,7 +119,7 @@ define([
var RT, rpc, exists; var RT, rpc, exists;
nThen(function (waitFor) { nThen(function (waitFor) {
Util.fetch(blockUrl, waitFor(function (err, block) { Util.fetch(blockUrl, waitFor(function (err) {
if (err) { return; } // No block found if (err) { return; } // No block found
exists = true; exists = true;
})); }));
@ -167,7 +166,7 @@ define([
})); }));
}).nThen(function (waitFor) { }).nThen(function (waitFor) {
// Read block // Read block
Util.fetch(blockUrl, waitFor(function (e, block) { Util.fetch(blockUrl, waitFor(function (e) {
if (e) { if (e) {
waitFor.abort(); waitFor.abort();
console.error("Can't read login block", e); console.error("Can't read login block", e);

Loading…
Cancel
Save