[SSE] Fixed loading formula description in the desktop.
This commit is contained in:
parent
4b4bef4e0b
commit
72da619d3f
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue