From 85528761eb88cf030bbc92c8b1ebc36c2e40f915 Mon Sep 17 00:00:00 2001 From: fewieden Date: Sun, 11 Feb 2018 09:07:41 +0100 Subject: [PATCH] only load core callback if there is one available --- js/translator.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/js/translator.js b/js/translator.js index 3b8b4e36..73de6778 100644 --- a/js/translator.js +++ b/js/translator.js @@ -217,10 +217,12 @@ var Translator = (function() { // defined translation after the following line. for (var first in translations) {break;} - Log.log("Loading core translation fallback file: " + translations[first]); - loadJSON(translations[first], function(translations) { - self.coreTranslationsFallback = translations; - }); + if (first) { + Log.log("Loading core translation fallback file: " + translations[first]); + loadJSON(translations[first], function(translations) { + self.coreTranslationsFallback = translations; + }); + } }, }; })();