Commit a1d7fef2 by Boris Kocherov

[erp5_only_office] use default value for remote_settings.json

1 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.
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!