From 524631a9d9298e8e1ca1f916b843cd246d7b5494 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 2 Mar 2019 18:28:27 +0100 Subject: [PATCH] hardcoding initial hosts value and not using a const for it --- TopSpace/CurrentEvent.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/TopSpace/CurrentEvent.js b/TopSpace/CurrentEvent.js index df3aae840..b40942a7e 100644 --- a/TopSpace/CurrentEvent.js +++ b/TopSpace/CurrentEvent.js @@ -6,8 +6,8 @@ function newCurrentEvent () { initialize: initialize } - const ecosystemBase = - [{ + function buildEcosystemEventsHack (reload) { + let hackedEcosystem = [{ 'codeName': 'AAArena', 'displayName': 'AA Arena', 'competitions': [{ @@ -43,9 +43,6 @@ function newCurrentEvent () { }] }] - function buildEcosystemEventsHack (reload) { - let hackedEcosystem = ecosystemBase - let ecosysTemp = window.localStorage.getItem('currentEventObject') if (!(ecosysTemp === null || ecosysTemp === '[]' || ecosysTemp === '')) { let parsedEcosysTemp = JSON.parse(ecosysTemp)