[BUGFIX] Only request locale file once
This commit is contained in:
parent
da029735cf
commit
8d6d508bba
@ -82,8 +82,9 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'],
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
language.init(router);
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
language.init(router);
|
|
||||||
return Promise.all(urls.map(helper.getJSON))
|
return Promise.all(urls.map(helper.getJSON))
|
||||||
.then(handleData);
|
.then(handleData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user