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:
authorMorris Jobke <hey@morrisjobke.de>2019-05-09 11:56:39 +0300
committerGitHub <noreply@github.com>2019-05-09 11:56:39 +0300
commitba1d25ea7e69d707066f37c2d570751ded2e6f2f (patch)
tree6a01e20cb03117ffc2f9d5080aff0ce6ae02c1ff
parent8fbb12763cd30c16cc177b9dbd9bf7cb84af95e1 (diff)
parent793b0ad330eeef04bc519192e873885d4e4605c3 (diff)
Merge pull request #132 from nextcloud/backport/131/stable16v16.0.1RC1v16.0.1
[stable16] Only call setViewerMode if FileList is available
-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');