Commit 5167b89e authored by Boris Kocherov's avatar Boris Kocherov Committed by Romain Courteaud

[erp5_only_office] use default value for remote_settings.json

parent 1de9e3bb
...@@ -194,7 +194,12 @@ DocsAPI.DocEditor.version = function () { ...@@ -194,7 +194,12 @@ DocsAPI.DocEditor.version = function () {
} }
}) })
.allowPublicAcquisition("getRemoteSettings", 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. // 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