From 8d6d508bba969f0b74f12c7595ea5c523eaa1c19 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Tue, 31 Oct 2017 08:34:18 +0100 Subject: [PATCH] [BUGFIX] Only request locale file once --- lib/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 1003216..3f18c4e 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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); }