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
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-08 13:28:22 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-05-08 14:12:13 +0300
commit793b0ad330eeef04bc519192e873885d4e4605c3 (patch)
tree6a01e20cb03117ffc2f9d5080aff0ce6ae02c1ff
parent8fbb12763cd30c16cc177b9dbd9bf7cb84af95e1 (diff)
Only call setViewerMode if FileList is available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--js/previewplugin.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/previewplugin.js b/js/previewplugin.js
index fa9b229..7760de2 100644
--- a/js/previewplugin.js
+++ b/js/previewplugin.js
@@ -32,7 +32,9 @@
$('footer').removeClass('hidden');
}
- FileList.setViewerMode(false);
+ if (typeof FileList !== 'undefined') {
+ FileList.setViewerMode(false);
+ }
// replace the controls with our own
$('#app-content #controls').removeClass('hidden');