diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 56e1cadfd..687326139 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1598,7 +1598,7 @@ define([ onCacheStart: function () { postMessage(clientId, "PAD_CACHE"); }, - onCacheReady: function (info) { + onCacheReady: function () { postMessage(clientId, "PAD_CACHE_READY"); }, onReady: function (pad) { diff --git a/www/common/outer/cache-store.js b/www/common/outer/cache-store.js index 687259ddd..56c78a5be 100644 --- a/www/common/outer/cache-store.js +++ b/www/common/outer/cache-store.js @@ -53,8 +53,8 @@ define([ }); }; - S.clearChannel = function (id, cb) { - cb = Util.once(Util.mkAsync(cb || function () {})); + S.clearChannel = function (id, _cb) { + cb = Util.once(Util.mkAsync(_cb || function () {})); cache.removeItem(id, cb); }; diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index 59dd51520..6353fb2f8 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -497,7 +497,7 @@ define([ cpNfInner.metadataMgr.updateMetadata(metadata); newContent = normalize(newContent); if (!unsyncMode) { - contentUpdate(newContent, function () { return function () {}}); + contentUpdate(newContent, function () { return function () {}; }); } UI.removeLoadingScreen(emitResize); diff --git a/www/common/sframe-chainpad-netflux-inner.js b/www/common/sframe-chainpad-netflux-inner.js index e70a5874e..1bdcc260f 100644 --- a/www/common/sframe-chainpad-netflux-inner.js +++ b/www/common/sframe-chainpad-netflux-inner.js @@ -94,7 +94,7 @@ define([ evInfiniteSpinner.fire(); }, 2000); - sframeChan.on('EV_RT_CACHE_READY', function (isPermanent) { + sframeChan.on('EV_RT_CACHE_READY', function () { onCacheReady({realtime: chainpad}); }); sframeChan.on('EV_RT_DISCONNECT', function (isPermanent) { diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 8fd37db4b..4c448e822 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -1637,7 +1637,7 @@ define([ }); }; - sframeChan.on('Q_CORRUPTED_CACHE', function (cb) { + sframeChan.on('Q_CORRUPTED_CACHE', function (data, cb) { Utils.Cache.clearChannel(secret.channel, cb); Cryptpad.onCorruptedCache(secret.channel); });