From d7f675ef8ececb0cf84f13c46edcf8fea4adcf6a Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 25 Mar 2021 14:08:50 +0100 Subject: [PATCH 1/2] Fix wrong error message when loading teams --- www/common/outer/team.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/outer/team.js b/www/common/outer/team.js index 9b016c0fe..ce164b01b 100644 --- a/www/common/outer/team.js +++ b/www/common/outer/team.js @@ -547,8 +547,8 @@ define([ lastKnownHash: rosterData.lastKnownHash, onCacheReady: function (_roster) { if (!cache) { return; } - console.error('Corrupted roster cache, cant load this team offline', teamData); if (_roster && _roster.error === "CORRUPTED") { + console.error('Corrupted roster cache, cant load this team offline', teamData); if (lm && typeof(lm.stop) === "function") { lm.stop(); } waitFor.abort(); cb({error: 'CACHE_CORRUPTED_ROSTER'}); From 0f931f4ca0b4c897486a2f21350eba7c7d063725 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 30 Mar 2021 16:06:56 +0530 Subject: [PATCH 2/2] stop using an API that doesn't exist anymore --- www/admin/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/admin/inner.js b/www/admin/inner.js index 6f0b9d2df..9a97539a5 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -496,7 +496,7 @@ define([ } var size = Array.isArray(obj) && obj[0]; if (typeof(size) !== "number") { return; } - UI.alert(Util.getPrettySize(size, Messages)); + UI.alert(getPrettySize(size)); }); });