diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-08 13:28:22 +0300 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-05-08 14:12:13 +0300 |
commit | 793b0ad330eeef04bc519192e873885d4e4605c3 (patch) | |
tree | 6a01e20cb03117ffc2f9d5080aff0ce6ae02c1ff | |
parent | 8fbb12763cd30c16cc177b9dbd9bf7cb84af95e1 (diff) |
Only call setViewerMode if FileList is available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | js/previewplugin.js | 4 |
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'); |