[SSE] Fixed loading formula description in the desktop.

This commit is contained in:
Julia Radzhabova 2017-12-08 14:01:56 +03:00
parent 4b4bef4e0b
commit 72da619d3f

View file

@ -97,7 +97,8 @@ define([
if (xhrObj && lang) {
xhrObj.open('GET', 'resources/formula-lang/' + lang + '_desc.json', false);
xhrObj.send('');
if (xhrObj.status == 200)
if (xhrObj.status==200 ||
(xhrObj.status==0 && !!xhrObj.responseURL && xhrObj.responseURL.startsWith('file://')))
langDescJson[lang] = eval("(" + xhrObj.responseText + ")");
else {
xhrObj.open('GET', 'resources/formula-lang/en_desc.json', false);