diff --git a/www/common/media-tag.js b/www/common/media-tag.js index 04e48d7f5..558ac9a19 100644 --- a/www/common/media-tag.js +++ b/www/common/media-tag.js @@ -246,7 +246,7 @@ var factory = function (Cache) { if (arrayBuffer) { var u8 = new Uint8Array(arrayBuffer); if (cacheKey) { - return void Cache.setBlobCache(cacheKey, u8, function (err) { + return void Cache.setBlobCache(cacheKey, u8, function () { cb(null, u8); }); } diff --git a/www/common/outer/cache-store.js b/www/common/outer/cache-store.js index fe3b541b2..4d5e30ed2 100644 --- a/www/common/outer/cache-store.js +++ b/www/common/outer/cache-store.js @@ -75,8 +75,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, function () { cb(); }); diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index f2a5996cf..d3a4bc174 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -474,7 +474,8 @@ define([ return UI.errorLoadingScreen("Reload loop: empty chainpad for a non-empty channel"); } noCache = true; - sframeChan.event("Q_CORRUPTED_CACHE"); + var sframeChan = common.getSframeChannel(); + sframeChan.event("EV_CORRUPTED_CACHE"); }; var onCacheReady = function () { stateChange(STATE.DISCONNECTED);