Merge pull request #17 from nikolabjelo/develop

hardcoding initial hosts value and not using a const for it
This commit is contained in:
nikolabjelo authored and GitHub committed 2019-03-02 18:37:44 +01:00
commit 0d2a2bf68c
1 file changed
+2 -5
+2 -5
View File
@@ -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)