lint compliance

pull/1/head
yflory 4 years ago
parent 980d3c7fff
commit bb13165e86

@ -317,12 +317,12 @@ button.primary:hover{
var c = types.indexOf(data.type); var c = types.indexOf(data.type);
if (c < current) { return console.error(data); } if (c < current) { return console.error(data); }
try { try {
var a = document.querySelector('.cp-loading-spinner-container'); var el1 = document.querySelector('.cp-loading-spinner-container');
if (a) { a.style.display = 'none'; } if (el1) { el1.style.display = 'none'; }
var b = document.querySelector('.cp-loading-progress-list'); var el2 = document.querySelector('.cp-loading-progress-list');
if (b) { b.innerHTML = makeList(data); } if (el2) { el2.innerHTML = makeList(data); }
var c = document.querySelector('.cp-loading-progress-container'); var el3 = document.querySelector('.cp-loading-progress-container');
if (c) { c.innerHTML = makeBar(data); } if (el3) { el3.innerHTML = makeBar(data); }
} catch (e) { console.error(e); } } catch (e) { console.error(e); }
}; };
window.CryptPad_updateLoadingProgress = updateLoadingProgress; window.CryptPad_updateLoadingProgress = updateLoadingProgress;

@ -1598,7 +1598,7 @@ define([
onCacheStart: function () { onCacheStart: function () {
postMessage(clientId, "PAD_CACHE"); postMessage(clientId, "PAD_CACHE");
}, },
onCacheReady: function (info) { onCacheReady: function () {
postMessage(clientId, "PAD_CACHE_READY"); postMessage(clientId, "PAD_CACHE_READY");
}, },
onReady: function (pad) { onReady: function (pad) {
@ -2500,7 +2500,7 @@ define([
addSharedFolderHandler(); addSharedFolderHandler();
userObject.migrate(cb); userObject.migrate(cb);
}; };
var onReady = function (clientId, returned, cb) { var onReady = function (clientId, returned/*, cb*/) {
console.error('READY'); console.error('READY');
var proxy = store.proxy; var proxy = store.proxy;
/* /*

@ -182,7 +182,7 @@ define([
} }
}; };
var rt = sf.rt = Listmap.create(listmapConfig); var rt = sf.rt = Listmap.create(listmapConfig);
rt.proxy.on('cacheready', function (info) { rt.proxy.on('cacheready', function () {
if (isNew && !Object.keys(rt.proxy).length) { if (isNew && !Object.keys(rt.proxy).length) {
// New Shared folder: no migration required // New Shared folder: no migration required
rt.proxy.version = 2; rt.proxy.version = 2;
@ -202,7 +202,7 @@ define([
}); });
sf.ready = true; sf.ready = true;
}); });
rt.proxy.on('ready', function (info) { rt.proxy.on('ready', function () {
if (isNew && !Object.keys(rt.proxy).length) { if (isNew && !Object.keys(rt.proxy).length) {
// New Shared folder: no migration required // New Shared folder: no migration required
rt.proxy.version = 2; rt.proxy.version = 2;

@ -486,7 +486,6 @@ console.log(newContentStr);
var newContent = JSON.parse(newContentStr); var newContent = JSON.parse(newContentStr);
var metadata = extractMetadata(newContent); var metadata = extractMetadata(newContent);
console.log('OKOK');
// Make sure we're using the correct app for this cache // Make sure we're using the correct app for this cache
if (metadata && typeof(metadata.type) !== 'undefined' && metadata.type !== type) { if (metadata && typeof(metadata.type) !== 'undefined' && metadata.type !== type) {
@ -497,7 +496,7 @@ console.log('OKOK');
cpNfInner.metadataMgr.updateMetadata(metadata); cpNfInner.metadataMgr.updateMetadata(metadata);
newContent = normalize(newContent); newContent = normalize(newContent);
if (!unsyncMode) { if (!unsyncMode) {
contentUpdate(newContent, function () { return function () {}}); contentUpdate(newContent, function () { return function () {}; });
} }
UI.removeLoadingScreen(emitResize); UI.removeLoadingScreen(emitResize);

@ -94,10 +94,10 @@ define([
evInfiniteSpinner.fire(); evInfiniteSpinner.fire();
}, 2000); }, 2000);
sframeChan.on('EV_RT_CACHE', function (isPermanent) { sframeChan.on('EV_RT_CACHE', function () {
// XXX // XXX
}); });
sframeChan.on('EV_RT_CACHE_READY', function (isPermanent) { sframeChan.on('EV_RT_CACHE_READY', function () {
// XXX // XXX
onCacheReady({realtime: chainpad}); onCacheReady({realtime: chainpad});
console.error('PEWPEWPEW'); console.error('PEWPEWPEW');

Loading…
Cancel
Save