[BUGFIX] Only request locale file once

This commit is contained in:
Xaver Maierhofer 2017-10-31 08:34:18 +01:00 committed by Xaver Maierhofer
parent da029735cf
commit 8d6d508bba
No known key found for this signature in database
GPG Key ID: 7FDCE23FD2EC9FE8

View File

@ -82,8 +82,9 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'],
}
}
language.init(router);
function update() {
language.init(router);
return Promise.all(urls.map(helper.getJSON))
.then(handleData);
}