Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-01-22 09:36:23 +0300
committerJulius Härtl <jus@bitgrid.net>2021-01-22 09:36:23 +0300
commit289fd485a0301dd02441c6607dc0fcb8384a8da8 (patch)
treed48364ad2ca88b9fbd494ed08b12f6b26de8c467 /src
parent8284ca5106ab9be95e392ff6dbf03e1ab04f9755 (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.js2
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'