summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-28 20:45:14 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-28 20:45:14 +0200
commitb95ebb76e52c58b7789886c9d4b61442e496f138 (patch)
tree69517ca8d956e174f58b1808107aee59b6552a6b /apps
parent863139c1e24719df4c3bbbefabb5173bc93672d9 (diff)
parent2daef7c7dcacc4b0bf6fc650d0d3ef330db11eee (diff)
downloadnextcloud-server-b95ebb76e52c58b7789886c9d4b61442e496f138.tar.gz
nextcloud-server-b95ebb76e52c58b7789886c9d4b61442e496f138.zip
Merge pull request #16607 from owncloud/ie9-textpreviewfallback
Fallback to picture preview for IE <= 9
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index c5934a4f609..17bee7b3b68 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -110,7 +110,7 @@ OCA.Sharing.PublicApp = {
(maxGifSize === -1 || fileSize <= (maxGifSize * 1024 * 1024))) {
img.attr('src', $('#downloadURL').val());
img.appendTo('#imgframe');
- } else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text') {
+ } else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {
// Undocumented Url to public WebDAV endpoint
var url = parent.location.protocol + '//' + location.host + OC.linkTo('', 'public.php/webdav');
$.ajax({