diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-05-29 15:19:32 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-05-29 15:31:40 +0300 |
commit | e947aa1e4b73f41fa49218505145a0c4fa61db3b (patch) | |
tree | 4ad0aed29265011449813f48c631da0f37093bd5 /src | |
parent | 1d59346044a458616a6c92388a7518f844e646b1 (diff) |
Do not check for capabilities during load though proxy
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/files.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/files.js b/src/files.js index 1d8f862a..5c00c1c4 100644 --- a/src/files.js +++ b/src/files.js @@ -37,7 +37,9 @@ const odfViewer = { open: false, receivedLoading: false, - isCollaboraConfigured: typeof OC.getCapabilities().richdocuments.collabora === 'object' && OC.getCapabilities().richdocuments.collabora.length !== 0, + isCollaboraConfigured: ( + (OC.getCapabilities().richdocuments.config.wopi_url.indexOf('proxy.php') !== -1) + || (typeof OC.getCapabilities().richdocuments.collabora === 'object' && OC.getCapabilities().richdocuments.collabora.length !== 0)), supportedMimes: OC.getCapabilities().richdocuments.mimetypes.concat(OC.getCapabilities().richdocuments.mimetypesNoDefaultOpen), excludeMimeFromDefaultOpen: OC.getCapabilities().richdocuments.mimetypesNoDefaultOpen, hideDownloadMimes: ['image/jpeg', 'image/svg+xml', 'image/cgm', 'image/vnd.dxf', 'image/x-emf', 'image/x-wmf', 'image/x-wpg', 'image/x-freehand', 'image/bmp', 'image/png', 'image/gif', 'image/tiff', 'image/jpg', 'image/jpeg', 'text/plain', 'application/pdf'], |