diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-01-22 09:36:23 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-01-22 09:36:23 +0300 |
commit | 289fd485a0301dd02441c6607dc0fcb8384a8da8 (patch) | |
tree | d48364ad2ca88b9fbd494ed08b12f6b26de8c467 /src | |
parent | 8284ca5106ab9be95e392ff6dbf03e1ab04f9755 (diff) |
Only attempt to use a secure view if hide download is actually set
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/isSecureViewerAvailable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/isSecureViewerAvailable.js b/src/utils/isSecureViewerAvailable.js index 4c7e0b5..1930369 100644 --- a/src/utils/isSecureViewerAvailable.js +++ b/src/utils/isSecureViewerAvailable.js @@ -22,4 +22,4 @@ */ import canDownload from './canDownload' -export default () => canDownload() && typeof OCA.RichDocuments !== 'undefined' +export default () => !canDownload() && typeof OCA.RichDocuments !== 'undefined' |