From f82fd9db0808aa95d9c4d03ec001a05ad18d78f3 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 19 Sep 2014 18:32:54 +0400 Subject: [PATCH] Fixed JSON error in Chrome App mode --- app/js/init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/init.js b/app/js/init.js index ecdab8e9..c102ed4d 100644 --- a/app/js/init.js +++ b/app/js/init.js @@ -123,7 +123,7 @@ ); } - $.get('js/locales/' + Config.I18n.locale + '.json').success(function (json) { + $.getJSON('js/locales/' + Config.I18n.locale + '.json').success(function (json) { Config.I18n.messages = json; bootReady.i18n_messages = true; if (locale == defaultLocale) { // No fallback, leave empty object @@ -133,7 +133,7 @@ }); if (Config.I18n.locale != defaultLocale) { - $.get('js/locales/en-us.json').success(function (json) { + $.getJSON('js/locales/' + defaultLocale + '.json').success(function (json) { Config.I18n.fallback_messages = json; bootReady.i18n_fallback = true; checkReady();