From d199da95634fd5bc6496b4dd05662df66e5cbdd3 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 24 Nov 2020 16:49:12 +0100 Subject: [PATCH] lint compliance --- www/common/media-tag.js | 2 +- www/common/outer/cache-store.js | 4 ++-- www/common/sframe-app-framework.js | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) 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);