@ -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);
});
}
@ -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();
@ -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);