Commit a1d7fef2 authored by Boris Kocherov's avatar Boris Kocherov

[erp5_only_office] use default value for remote_settings.json

parent 1fee4f9a
......@@ -194,7 +194,12 @@ DocsAPI.DocEditor.version = function () {
}
})
.allowPublicAcquisition("getRemoteSettings", function () {
return this.jio_getAttachment('/', 'remote_settings.json', {format: 'json'});
return this.jio_getAttachment('/', 'remote_settings.json', {format: 'json'})
.push(undefined, function (error) {
if (error.status_code === 404) {
return {};
}
});
})
// methods emulating Gateway used for connection with ooffice begin.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment